/* ============================================================
   auth.css — Devs On Budget Authenticaton
   ============================================================ */

.auth-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: var(--cream, #faf9f7);
    position: relative;
    overflow: hidden;
}

/* Background blob decorations */
.auth-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.15;
}

.auth-bg-blob.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--orange, #ff6b00);
    top: -100px;
    left: -100px;
}

.auth-bg-blob.blob-2 {
    width: 400px;
    height: 400px;
    background: #0044ff;
    bottom: -50px;
    right: -50px;
}

/* Main Container */
.auth-container {
    width: 100%;
    max-width: 480px;
    background: var(--white, #ffffff);
    border-radius: var(--radius-xl, 24px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    overflow: hidden;
    border: 1px solid var(--border, #eaeaea);
}

/* Header */
.auth-header {
    text-align: center;
    padding: 40px 40px 0;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--orange, #ff6b00);
    color: var(--white, #fff);
    border-radius: 14px;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark, #0d0d1a);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--gray, #64748b);
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin: 32px 40px 0;
    background: var(--cream, #faf9f7);
    border-radius: 12px;
    padding: 6px;
    position: relative;
}

.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray, #64748b);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

.auth-tab-btn.active {
    color: var(--dark, #0d0d1a);
}

.auth-tab-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    bottom: 6px;
    width: calc(50% - 6px);
    background: var(--white, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* Form Slider Area */
.auth-forms-wrapper {
    position: relative;
    padding: 32px 40px 40px;
    overflow: hidden;
}

.auth-form-slider {
    display: flex;
    width: 200%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form-panel {
    width: 50%;
    flex-shrink: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0s 0.3s;
}

.auth-form-panel.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s 0.2s;
}

/* Form Elements */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark, #0d0d1a);
    margin-bottom: 8px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

.auth-input {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--border, #eaeaea);
    border-radius: 12px;
    background: var(--white, #fff);
    padding: 0 16px 0 46px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark, #0d0d1a);
    transition: border-color var(--transition, 0.3s), box-shadow var(--transition, 0.3s);
}

.auth-input:focus {
    outline: none;
    border-color: var(--orange, #ff6b00);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.auth-input::placeholder {
    color: #cbd5e1;
}

/* Actions & Links */
.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-check input {
    accent-color: var(--orange, #ff6b00);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-check span {
    font-size: 0.85rem;
    color: var(--gray, #64748b);
}

.auth-forgot {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange, #ff6b00);
    text-decoration: none;
    transition: opacity 0.3s;
}

.auth-forgot:hover {
    opacity: 0.8;
}

/* Buttons */
.auth-btn {
    width: 100%;
    height: 52px;
    background: var(--orange, #ff6b00);
    color: var(--white, #fff);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    background: var(--orange-d, #e66000);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 0, 0.35);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid var(--border, #eaeaea);
}

.auth-divider::before { margin-right: 12px; }
.auth-divider::after { margin-left: 12px; }

/* Social Buttons */
.auth-social {
    display: flex;
    gap: 12px;
}

.auth-social-btn {
    flex: 1;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--white, #fff);
    border: 1.5px solid var(--border, #eaeaea);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark, #0d0d1a);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.auth-social-btn:hover {
    background: var(--cream, #faf9f7);
    border-color: #cbd5e1;
}

.auth-social-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile Adjustments */
@media (max-width: 500px) {
    .auth-header, .auth-forms-wrapper {
        padding-left: 24px;
        padding-right: 24px;
    }
    .auth-tabs {
        margin-left: 24px;
        margin-right: 24px;
    }
}
