/* ══════════════════════════════════════════════════════════════════════════════
   AUTH STYLES (Login / Register)
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #C8102E;
    --primary-light: #FFF5F6;
    --border: #E9ECEF;
    --bg-gray: #F8F9FA;
    --text-main: #2D3436;
    --text-muted: #636E72;
}

.auth-page-wrapper {
    min-height: 100vh;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.auth-box {
    background: #FFFFFF;
    width: 100%;
    max-width: 500px;
    border-radius: 28px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    background: var(--bg-gray);
    padding: 6px;
    border-radius: 100px;
    position: relative;
    margin-bottom: 40px;
}

.tab-trigger {
    flex: 1;
    border: none;
    background: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
}

.tab-trigger.active {
    color: var(--primary);
}

.tab-indicator {
    position: absolute;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: #FFFFFF;
    border: 2px solid var(--primary);
    border-radius: 100px;
    top: 6px;
    left: 6px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.1);
}

/* Form Controls */
.form-control {
    margin-bottom: 24px;
}

.form-control label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.input-wrapper, .phone-container {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 0 18px;
    transition: all 0.3s;
    height: 56px;
    width: 100%;
}

.input-wrapper:focus-within, .phone-container:focus-within {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.05);
}

.input-wrapper i {
    color: var(--primary);
    font-size: 18px;
    margin-right: 14px;
    opacity: 0.6;
}

.input-wrapper input, .phone-container input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    height: 100%;
    width: 100%;
}

.phone-container {
    padding-left: 10px;
}

.country-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gray);
    padding: 8px 12px;
    border-radius: 10px;
    margin-right: 12px;
    border: 1px solid var(--border);
}

.country-box img {
    width: 20px;
    border-radius: 2px;
}

.country-box span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.visibility-toggle {
    background: none;
    border: none;
    color: #ADB5BD;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input {
    display: none;
}

.custom-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.remember-me input:checked + .custom-check {
    background: var(--primary);
    border-color: var(--primary);
}

.custom-check:after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #FFF;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s;
}

.remember-me input:checked + .custom-check:after {
    transform: translate(-50%, -50%) scale(1);
}

.forgot-pwd {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.auth-submit-btn {
    width: 100%;
    height: 60px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(200, 16, 46, 0.15);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(200, 16, 46, 0.25);
    background: #A00D25;
}

/* Social Section */
.separator {
    text-align: center;
    position: relative;
    margin: 35px 0;
}

.separator:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--border);
    top: 50%;
    left: 0;
    z-index: 1;
}

.separator span {
    background: #FFFFFF;
    padding: 0 20px;
    font-size: 14px;
    color: #ADB5BD;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.social-link img {
    width: 24px;
}

.social-link span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.terms-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.terms-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.error-msg {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

/* Animation & Switching */
.auth-form-content {
    display: none;
}

.auth-form-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    .auth-box {
        padding: 30px 20px;
    }
    .social-btns {
        grid-template-columns: 1fr;
    }
}
