*, *::before, *::after { box-sizing: border-box; }
        html, body { margin: 0; } /* Removed height: 100% to allow flexible height */
        body {
            font-family: 'Nunito Sans', sans-serif;
            background: #000;
            color: #fff;
            /* Flexbox layout to position footer correctly */
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        #bg-video {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -2;
        }
        .backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.53);
            z-index: -1;
        }

        .auth {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center; /* Better centering for the content */
            flex-grow: 1; /* Allows this section to fill available space */
            padding: 2rem;
            padding-top: 120px; /* Space to avoid overlap with fixed header */
            width: 100%;
            margin-top: 60px;
        }

        .brand {
            width: 60%;
            text-align: left;
            padding-left: 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            
        }
        .brand h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            font-weight: 900;
            color: #ddc7c7ff;
            line-height: 1.2;
        }
        .brand p {
            font-size: 1.3rem;
            line-height: 1.8;
            margin-top: 1.5rem;
            max-width: 550px;
            color: #f5f5f5;
            text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
        }

        form {
            width: 30%;
            background: rgba(255, 255, 255, 0.1);
            padding: 2rem;
            border-radius: 30px;
            backdrop-filter: blur(6px);
            margin-left: 1rem;
            margin-top: 40px;
        }
        form:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(255, 255, 255, 255);
        }
        form h2 {
            text-align: center;
            color: #ffffff;
            margin-bottom: 15px;
            font-size: 2rem;
            font-weight: 600;
        }

        .field {
            margin-bottom: 1.5rem;
            text-align: left;
        }
        .field label {
            display: block;
            margin-bottom: 0.3rem;
            font-weight: 600;
            font-size: 1rem;
            color: rgba(255, 218, 10, 0);
        }
        .field input {
            width: 100%;
            height: 55px;
            padding: 12px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            color: #ffffff;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(6px);
        }

        .field input:hover,
        .field-box input:focus,
        .field-box select:hover,
        .field-box select:focus {
            border-color: #ffda0aff;
            box-shadow: 0 0 10px rgba(255, 218, 10, 0.6);
            background: rgba(255, 255, 255, 0.1);
        }
        input::placeholder {
            color: #f8f1f1f5;
            font-size: 14px;
        }

        .forgot-password-link a {
    color: #FFFF00; /* <--- මෙතන මේ විදියට වෙනස් කරන්න */
    text-decoration: none;
    font-size: 0.9rem;
}
        .forgot-password-link a:hover {
            text-decoration: underline;
        }

        .btn {
            width: 100%;
            padding: 1rem;
            border: none;
            border-radius: 30px;
            background: #ffda0aff;
            color: rgba(14, 9, 9, 1);
            font-weight: 700;
            cursor: pointer;
            margin-top: 1rem;
            font-size: 1.1rem;
        }
        .btn:hover {
            background: #caad08ff;
        }

        .message {
            color: #e21313ff;
            background: hsla(0, 0%, 100%, 0.29);
            padding: 8px;
            margin-bottom: 15px;
            border-radius: 5px;
            text-align: center;
            border: 1px solid #ff4d4d;
            border-radius: 30px;
        }
        .message.success {
            color: #155724;
            background-color: #d4edda;
            border-color: #c3e6cb;
        }
        .register-link {
            margin-top: 1rem;
            text-align: center;
            font-size: 1rem;
        }
        .register-link a {
            color: rgba(230, 247, 0, 1);
            text-decoration: underline;
            font-weight: 600;
        }

@media (max-width: 768px) {
    .auth {
        justify-content: center;
    }
    .brand {
        display: none;
    }
    .login-form {
        width: 90%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 1rem;
        border-radius: 20px;
    }
    .field input {
        height: 50px;
    }
}