*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #89c6fc 0%, #4aabfa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::after{
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -100px;
    right: -100px;
}
@keyframes float {
    0%, 100% {transform: translateY(0px);}
    50% { transform: translateY(-30px);}
}

.decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: 40%;
    right: 8%;
    pointer-events: none;
    animation: float 7s ease-in-out infinite;
}
.container{
    position: relative;
    z-index: 1;
    animation: slideIn 0.6s ease-out;
    width: 400px;
    margin-bottom: 50px;
}

@keyframes slideIn{
    from{
        opacity: 0;
        transform: translateY(-40px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
.header{
    text-align: center;
    margin-bottom: 25px;
}
.brand-logo {
    width: 120px;
    height: 120px;
    display: inline-block;
    vertical-align: middle;
    margin-left: -40px;
   
}

@keyframes bounce {
    0%, 100% { transform: translateY(0);}
    50% { transform: translateY(-10px);}
}
h2 {
    color: white;
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
    margin-left: -35px;
    
}

.sub{
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-top: -20px;
}

form{
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    padding: 45px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

 .forgot-card {
            width: 100%;
            max-width: 420px;
            margin: auto;
        }

        .forgot-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            margin-bottom: 8px;
        }

        .forgot-header .brand-logo {
            display: block;
            margin-bottom: 4px;
        }

        .forgot-header h2 { margin: 0; }
        .forgot-header .sub { margin: 0; }

        .forgot-hint {
            text-align: center;
            font-size: 13px;
            color: #666;
            margin: 0 0 22px;
            line-height: 1.55;
            padding: 0 4px;
        }

        .section-rule {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        .section-rule::before,
        .section-rule::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e0e0e0;
        }
        .section-rule span {
            font-size: 11px;
            color: #aaa;
            letter-spacing: .5px;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .forgot-field {
            margin-bottom: 16px;
        }

        .forgot-field label {
            display: block;
            font-size: 12.5px;
            font-weight: 600;
            color: #444;
            margin-bottom: 6px;
        }


        .input-row {
            display: flex;
            align-items: center;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
            transition: border-color .2s, box-shadow .2s;
        }

        .input-row:focus-within {
            border-color: #e91e25;
            box-shadow: 0 0 0 3px rgba(233, 30, 37, .12);
        }

        .input-row input {
            flex: 1;
            border: none;
            outline: none;
            padding: 11px 14px;
            font-size: 13.5px;
            color: #333;
            background: transparent;
        }

        .input-row input::placeholder { color: #bbb; }

        .input-row .icon {
            padding: 0 12px;
            font-size: 15px;
            user-select: none;
        }


        #submitBtn {
            width: 100%;
            margin-top: 4px;
            padding: 11px;
            font-size: 14px;
            border-radius: 8px;
            cursor: pointer;
            transition: opacity .2s, transform .15s;
        }

        #submitBtn:disabled {
            opacity: .65;
            cursor: not-allowed;
        }

        #submitBtn:hover:not(:disabled) {
            opacity: .9;
            transform: translateY(-1px);
        }


        .back-row {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 18px;
        }

        .back-row a {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 9px 20px;
            border: 1.5px solid #e91e25;
            border-radius: 8px;
            color: #e91e25;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            letter-spacing: .2px;
            transition: background .2s, color .2s, transform .15s;
        }

        .back-row a:hover {
            background: #e91e25;
            color: #fff;
            transform: translateY(-1px);
        }

        .back-row a:hover .back-arrow {
            transform: translateX(-3px);
        }

        .back-arrow {
            display: inline-block;
            transition: transform .2s;
            font-style: normal;
        }

form::before{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e88e5, #42a5f5, #1e88e5);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer{
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
label{
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.input{
    position: relative;
}

.icon{
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    transition: color 0.3s ease;
    pointer-events: none;
}

input[type="text"], input[type="password"]{
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    background: #fafafa; 
}
input[type="text"]:focus + .icon, input[type="password"]:focus + .icon{
    color: #1e88e5;
}
input[type="text"]::placeholder, input[type="password"]::placeholder{
    color: #aaa;
}
.options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}
.remember-me{
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"]{
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1e88e5;
}
button[type="submit"]{
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3 ease;
    box-shadow: 0 5px 20px rgba(30, 136, 229, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3),
    transparent);
    transition: left 0.5s ease;
}
button[type="submit"]:hover::before{
    left: 100%;
}

button[type="submit"]:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.5);
}
button[type="submit"]:active{
    transform: translateY(-1px);
}
@media (max-width: 480px){
    form{
        padding: 35px 28px;
    }
    h2{
        font-size: 42px;
    }
    .logo{
        font-size: 64px;
    }
    .sub{
            font-size: 16px;
        
    }
}