/* ============================================
   Auth Pages — Memo (Redesigned)
   ============================================ */

.auth-body {
    min-height: 100vh;
    background: var(--color-background);
}

/* ---- Split Layout ---- */

.auth-layout {
    display: flex;
    min-height: 100vh;
}

/* ---- Decorative Panel (left) ---- */

.auth-panel {
    flex: 0 0 420px;
    background: var(--color-menubar);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(43, 181, 160, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(43, 181, 160, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.auth-panel__content {
    position: relative;
    text-align: center;
    max-width: 300px;
}

.auth-panel__icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(43, 181, 160, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-secondary);
    font-size: 1.75rem;
}

.auth-panel__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.auth-panel__text {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ---- Main (right) ---- */

.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(43, 181, 160, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(43, 181, 160, 0.03) 0%, transparent 50%),
        var(--color-background);
    animation: auth-fadeIn 0.5s ease-out both;
}

/* ---- Card ---- */

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-white);
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 30px rgba(0, 0, 0, 0.07);
}

/* ---- Logo & Title ---- */

.auth-logo-link {
    display: block;
    text-align: center;
}

.auth-logo {
    display: block;
    margin: 0 auto;
    height: 2.5rem;
    width: auto;
    margin-bottom: 1.5rem;
}

.auth-title {
    text-align: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

/* ---- Alerts ---- */

.auth-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: var(--color-danger);
    font-size: 0.85rem;
    line-height: 1.5;
}

.auth-errors p {
    margin: 0;
}

.auth-errors p + p {
    margin-top: 0.25rem;
}

.auth-status {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: var(--color-success);
    font-size: 0.85rem;
    line-height: 1.5;
}

.auth-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: #1e40af;
    font-size: 0.85rem;
    line-height: 1.5;
}

.auth-info p {
    margin: 0;
}

/* ---- Form ---- */

.auth-field {
    margin-bottom: 1.125rem;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.auth-field input {
    width: 100%;
    padding: 0.7rem 0.875rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-primary);
    background: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.1);
}

.auth-field input:disabled {
    background: var(--color-background);
    color: #999;
    cursor: not-allowed;
}

/* ---- Button ---- */

.auth-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.auth-button:hover {
    background: var(--color-secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 181, 160, 0.25);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.auth-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-button:disabled:hover {
    background: #d1d5db;
    transform: none;
    box-shadow: none;
}

/* ---- Links ---- */

.auth-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #666;
}

.auth-link a {
    color: var(--color-secondary);
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link a:hover {
    color: var(--color-secondary-hover);
}

.auth-link--forgot {
    margin-top: 0.5rem;
}

/* ---- Footer ---- */

.auth-contact {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #999;
}

.auth-contact a {
    color: #999;
    transition: color 0.2s;
}

.auth-contact a:hover {
    color: var(--color-secondary);
}

/* ---- Animation ---- */

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

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .auth-panel {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
}
