/* ---- Auth Page Specific Styles ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
}

.auth-page {
    background: linear-gradient(135deg, #e0f0ff 0%, #f5f9ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

/* ---- Auth Card ---- */
.auth-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 20, 50, 0.12);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 470px;
    transition: transform 0.2s ease;
    margin-top: 100px;
}

.auth-card:hover {
    transform: translateY(-2px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a2a3a;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-header h2 span {
    background: #2563eb;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    line-height: 1.4;
}

.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* ---- Tabs ---- */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 1rem;
}

.auth-tab:hover {
    color: #1e293b;
}

.auth-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* ---- Form Panels ---- */
.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

/* ---- Error & Success ---- */
.error-box {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-box::before {
    content: "⚠️";
}

.success-box {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #0a5e2e;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-box::before {
    content: "✅";
}

/* ---- Form groups ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e293b;
    margin-bottom: 0.35rem;
    letter-spacing: 0.3px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 4.2rem;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.toggle-password:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.65s, transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
    width: 100%;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-google {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.btn-google:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.btn-google img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ---- Divider ---- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.75rem 0 1.25rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #e2e8f0;
}

.divider span {
    padding: 0 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ---- Footer links ---- */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1e293b;
    text-decoration: underline;
}

.merge{
    display: flex;
    gap: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.8rem 1.2rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }

    .auth-header h2 span {
        font-size: 1rem;
        padding: 0.1rem 0.6rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    .auth-tab {
        font-size: 0.9rem;
        padding: 0.6rem 0.5rem;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .auth-card {
        padding: 1.2rem 0.8rem;
    }
}
