/* 💎 Premium Modern Styles for Login/Signup */
:root {
    --primary-color: #35bfbf;
    --primary-hover: #2da1a1;
    --bg-light: #f6f8fb;
    --text-main: #2d3748;
    --text-muted: #718096;
    --white: #ffffff;
    --error: #ff4d4f;
    --success: #52c41a;
    --border-radius: 16px;
    --input-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
}

.container.forms {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.form {
    background: var(--white);
    max-width: 440px;
    width: 100%;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(230, 235, 245, 0.8);
    transition: opacity 0.3s ease;
}

.form-content {
    width: 100%;
}

header {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 8px;
}

.form-link {
    text-align: center;
    margin-bottom: 24px;
}

.form-link span,
.form-link p {
    font-size: 14px;
    color: var(--text-muted);
}

.form-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 🔹 Social Media Options */
.media-options {
    margin-top: 10px;
}

.media-options .g_id_signin {
    display: flex;
    justify-content: center;
    width: 100%;
}

.media-options .g_id_signin>div,
.media-options .g_id_signin iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* 🔹 Visual Dividers */
.line {
    position: relative;
    height: 1px;
    width: 100%;
    margin: 32px 0;
    background-color: #edf2f7;
}

.line::before {
    content: 'or continue with email';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    color: var(--text-muted);
    padding: 0 15px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* 🔹 Form Fields */
.form .field {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.field input {
    height: 52px;
    width: 100%;
    outline: none;
    padding: 0 16px;
    border-radius: var(--input-radius);
    border: 1.5px solid #e2e8f0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s ease;
    background: #f8fafc;
}

.field input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(53, 191, 191, 0.2);
}

.eye-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.eye-icon:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* 🔹 Buttons */
.field button {
    height: 52px;
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--input-radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(115, 102, 255, 0.25);
    margin-top: 10px;
}

.field button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(115, 102, 255, 0.35);
    opacity: 0.95;
}

.field button:active {
    transform: translateY(0);
}

/* 🔹 Alerts & Messages */
.error-message {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    display: block;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    text-align: center;
}

.alert-danger {
    background-color: #fff1f0;
    border: 1px solid #ffa39e;
    color: #cf1322;
}

.alert-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
    width: 100%;
    display: block;
    word-break: break-word;
}

/* 🔹 Utils */
#backBtn {
    background: rgba(115, 102, 255, 0.05);
    border: 1px solid rgba(115, 102, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#backBtn:hover {
    background: rgba(115, 102, 255, 0.1);
    transform: translateX(-3px);
}

.imglogo {
    margin-bottom: 10px;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.form-header .logo-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.form-header .imglogo {
    margin-bottom: 0;
}

/* 🔹 Dark Mode Support */
body.dark-only {
    background-color: #0f172a;
}

body.dark-only .form {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

body.dark-only header,
body.dark-only .form-link a {
    color: #f8fafc;
}

body.dark-only .line {
    background-color: #334155;
}

body.dark-only .line::before {
    background-color: #1e293b;
    color: #94a3b8;
}

body.dark-only .field input {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-only #backBtn {
    background: rgba(115, 102, 255, 0.15);
    color: #a5b4fc;
}

@media screen and (max-width: 480px) {
    .container.forms {
        padding: 0;
        align-items: stretch;
    }

    .form {
        padding: 30px 20px;
        border-radius: 0;
        min-height: 100vh;
        height: auto;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .form-content {
        width: 100%;
        max-width: 100%;
    }

    .line::before {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* 🔹 Password Requirements List */
.helper-text {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    margin-bottom: 4px;
    padding-left: 4px;
}

.password-requirements {
    list-style: none;
    margin-top: 10px;
    padding-left: 5px;
}

.password-requirements li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.password-requirements li i {
    font-size: 16px;
    color: #cbd5e0;
}

.password-requirements li.valid {
    color: var(--success);
    font-weight: 500;
}

.password-requirements li.valid i {
    color: var(--success);
}

/* Ensure icons switch properly if using classes */
.password-requirements li.valid i::before {
    content: "\ea50";
    /* bx-check */
}

.password-requirements li i::before {
    content: "\ea4f";
    /* bx-dot-circle */
}

.password-requirements li.invalid {
    color: var(--error);
}

.password-requirements li.invalid i {
    color: var(--error);
}

.password-requirements li.invalid i::before {
    content: "\ea4f";
    /* bx-dot-circle */
}
