/* Base Reset */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    border: 0;
    background-color: #000;
}

/* Login Page Styles */
body.login {

    background-image: url("../graphics/invana-login.jpg");
    /*background-image: url("../graphics/m27-cms-bkg-2056px.jpg");*/
    background-origin: padding-box;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body.login #container {
    height: 100%;
}


body.login #mainContent {
    text-align: center;
    position: absolute;
    height: auto;
    width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* NEW: Frosted glass effect properties */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo */
body.login .login-logo {
    width: 100%;
    height: 46px;
    /*background: url(../../assets/graphics/M27-CMS-logo.png) no-repeat center center;*/
    background: url(../../assets/graphics/iluvana-brand-white.png) no-repeat center center; 
    background-size: contain;
}

/* Main Heading */
body.login .login-logo + h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin-top: 80px;
    font-size: 23px;
    letter-spacing: .1em;
    color: #ffffff;
}

/* Form Container */
body.login .form-container {
    margin-top: 67px;
}

/* Input Fields */
body.login .form-container input.textbox {
    text-align: left;
    border: 0;
    box-sizing: border-box;
    display: inline-block;
    background: none;
    width: 200px;
    font-size: 16px;
    color: #cfcfcf;
    outline: none;
}

body.login .form-container input.textbox::placeholder {
    color: #cfcfcf;
}

/* Submit Button */

body.login .form-container .submitbtn {
    box-sizing: border-box;
    border: 0;
    background: none;
    position: absolute;
    right: 0;
    bottom: 10px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    color: #cfcfcf;
    font-size: 16px;
    outline: none;
}


body.login .form-container .submitbtn:hover {
    color: #ffffff;
}
body.login .form-container .submitbtn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}



/* Icon Containers */
body.login .form-container span.icon {
    display: inline-block;
    position: relative;
    width: 300px;
    padding-bottom: 10px;
    border-bottom: 1px solid #cfcfcf;
}

body.login .form-container span.icon + span.icon {
    margin-top: 35px;
}

/* User Icon */
body.login .form-container span.usericon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f007"; /* fa-user */
    position: absolute;
    left: 0;
    top: 0;
    height: 21px;
    width: 26px;
    color: #cfcfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

body.login .form-container span.usericon:hover::before {
    color: #ffffff;
}

/* Password Icon */
body.login .form-container span.passicon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f023"; /* fa-lock */
    position: absolute;
    left: 2px;
    top: -2px;
    height: 26px;
    width: 21px;
    color: #cfcfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

body.login .form-container span.passicon:hover::before {
    color: #ffffff;
}

body.login .form-container span.remember-checkbox {
    display: inline-block;
    margin-top: 25px;
    text-align: left;
    width: 300px;
    position:relative;
}

body.login .form-container span.remember-checkbox label {
    color: #cfcfcf;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

body.login .form-container span.remember-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #ffffff;
    cursor: pointer;
}

body.login .form-container .error-message {
    display: none;
    margin-top: 20px;
    padding: 12px;
    background: rgba(231, 76, 60, 0.9);
    color: #ffffff;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
/* UPDATED STYLE BLOCKS */
@media (max-width: 640px) {
    body.login #mainContent {

        /* REMOVED: padding: 0 20px; */
        /* REMOVED: box-sizing: border-box; */
        /* NEW: Adjusted padding for frosted glass container */

        width: 80%;
        max-width: 350px;
        padding: 30px 20px;
        min-width: 320px;
    }
    
    body.login .form-container span.icon {
        width: 100%;
        max-width: 280px;
    }
    
    body.login .form-container input.textbox {
        width: 180px;
    }
    
    body.login .login-logo + h1 {
        margin-top: 60px;
        font-size: 20px;
        /* REMOVED: margin-top: 60px; - keeping existing spacing */
    }
    
    body.login .form-container {
        margin-top: 50px;
        /* REMOVED: margin-top: 50px; - keeping existing spacing */
    }
}

/* ================================================
   Signup & Verification Styles
   Append this block to the end of login-styles.css
   ================================================ */

/* Name Icon (first name field) */
body.login .form-container span.nameicon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f007"; /* fa-user */
    position: absolute;
    left: 0;
    top: 0;
    height: 21px;
    width: 26px;
    color: #cfcfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
body.login .form-container span.nameicon:hover::before {
    color: #ffffff;
}

/* Username Icon (at symbol) */
body.login .form-container span.usernameicon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f1fa"; /* fa-at */
    position: absolute;
    left: 0;
    top: 0;
    height: 21px;
    width: 26px;
    color: #cfcfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
body.login .form-container span.usernameicon:hover::before {
    color: #ffffff;
}

/* Email Icon */
body.login .form-container span.emailicon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0e0"; /* fa-envelope */
    position: absolute;
    left: 0;
    top: 0;
    height: 21px;
    width: 26px;
    color: #cfcfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
body.login .form-container span.emailicon:hover::before {
    color: #ffffff;
}

/* Left-pad all signup inputs to clear the icon */
body.login .form-container span.nameicon input.textbox,
body.login .form-container span.usernameicon input.textbox,
body.login .form-container span.emailicon input.textbox {
    padding-left: 32px;
}

/* Password hint text */
body.login .form-container .password-hint {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(207, 207, 207, 0.6);
    text-align: left;
    width: 300px;
    display: inline-block;
}

/* Full-width signup button */
body.login .form-container .signup-btn {
    display: inline-block;
    width: 300px;
    margin-top: 28px;
    padding: 12px 0;
    border: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.3s ease;
    outline: none;
}
body.login .form-container .signup-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
body.login .form-container .signup-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Success message (signup confirmation) */
body.login .form-container .success-message {
    display: none;
    margin-top: 20px;
    padding: 14px;
    background: rgba(22, 160, 133, 0.9);
    color: #ffffff;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}

/* Auth page switch link ("Sign up" / "Sign in") */
body.login .auth-switch {
    margin-top: 30px;
    font-size: 14px;
    color: rgba(207, 207, 207, 0.7);
}
body.login .auth-switch a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
    transition: border-color 0.3s ease;
}
body.login .auth-switch a:hover {
    border-bottom-color: #ffffff;
}

/* ---- Verify Email Page ---- */

body.login .verify-result {
    margin-top: 50px;
    text-align: center;
}
body.login .verify-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
body.login .verify-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 14px;
}
body.login .verify-message {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(207, 207, 207, 0.85);
    line-height: 1.6;
    margin: 0 0 28px;
}
body.login .verify-login-btn {
    display: inline-block;
    padding: 11px 36px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.3s ease;
}
body.login .verify-login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---- Responsive adjustments for signup ---- */
@media (max-width: 640px) {
    body.login .form-container .signup-btn {
        width: 100%;
        max-width: 280px;
    }
    body.login .form-container .password-hint {
        width: 100%;
        max-width: 280px;
    }
}
