/* Combined Authentication Styles - Glassmorphism Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('img/background-auth.avif');
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 20px;
}

.container {
    width: 420px;
    max-width: 100%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(9px);
    color: #ffffff;
    border-radius: 12px;
    padding: 40px;
}

.container h2 {
    font-size: 36px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s;
    width: auto;
}

.lang-btn:hover, .lang-btn.active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

/* Input Box Styling */
.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    font-size: 16px;
    color: #ffffff;
    padding: 20px 45px 20px 20px;
    margin-bottom: 0;
}

.input-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-box input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Regular inputs (for non-icon inputs) */
/*
input:not(.input-box input):not(.code-input) {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 14px 20px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    font-size: 16px;
    color: #ffffff;
    transition: border-color 0.3s;
}

input:not(.input-box input):not(.code-input)::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:not(.input-box input):not(.code-input):focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}
*/
/* Button Styling */
button[type="submit"], .btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

button[type="submit"]:hover, .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

button[type="submit"]:disabled, .btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.links {
    text-align: center;
    font-size: 14.5px;
    margin: 20px 0 15px;
}

.links p {
    margin: 10px 0;
}

a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Remember/Forgot section */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;
}

.remember-forgot label input {
    accent-color: #ffffff;
    margin-right: 3px;
}

.remember-forgot a {
    color: #ffffff;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

/* Remember me checkbox */
.remember-box {
    margin: 15px 0;
    display: flex;
    justify-content: flex-start;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: #ffffff;
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}

/* Subtitle */
.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 14px;
}

/* Icon */
.icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
}

/* Email Display */
.email-display {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* Code Input Styles (for reset password verify) */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #ffffff;
    transition: border-color 0.3s;
}

.code-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

/* Resend Button */
.resend-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    width: auto;
    padding: 0;
}

.resend-link:hover {
    text-decoration: underline;
}

.resend-link:disabled {
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    text-decoration: none;
}

/* RTL Support */
[dir="rtl"] input,
[dir="rtl"] .code-input {
    text-align: right;
}

[dir="rtl"] .input-box input {
    padding: 20px 20px 20px 45px;
}

[dir="rtl"] .input-box i {
    right: auto;
    left: 20px;
}

[dir="rtl"] .lang-btn {
    font-family: "Poppins", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 25px 20px;
        border-radius: 10px;
    }
    .container h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .input-box {
        height: 45px;
        margin: 20px 0;
    }
    .input-box input {
        font-size: 15px;
        padding: 15px 40px 15px 18px;
    }
    .input-box i {
        font-size: 18px;
        right: 15px;
    }
    input:not(.input-box input):not(.code-input) {
        padding: 12px 18px;
        font-size: 15px;
    }
    button[type="submit"], .btn {
        height: 42px;
        font-size: 15px;
    }
    .language-switcher {
        gap: 6px;
    }
    .lang-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    .code-input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
    .code-inputs {
        gap: 6px;
    }
    .subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .icon {
        font-size: 36px;
    }
    .links {
        font-size: 13px;
    }
    .remember-forgot {
        font-size: 13px;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 20px 15px;
    }
    .container h2 {
        font-size: 24px;
    }
    .code-input {
        width: 36px;
        height: 44px;
        font-size: 18px;
    }
    .code-inputs {
        gap: 4px;
    }
    .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* OAuth provider buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.oauth-btn {
    width: 100%;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 40px;
    cursor: pointer;
    font-size: 15px;
    color: #1f1f1f;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.oauth-btn:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.oauth-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Separator between OAuth and email/password */
.oauth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 18px 0;
}

.oauth-separator::before,
.oauth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.oauth-separator::before { margin-right: 14px; }
.oauth-separator::after  { margin-left: 14px; }
