/* ===== Auth Pages Shared Styles ===== */
/* Used by: login.html, register.html, email-verified.html */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Layout ---- */
.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.auth-card.text-center {
    text-align: center;
}

/* ---- Top Bar ---- */
.auth-top-bar {
    width: 100%;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.auth-top-brand {
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}
.auth-top-brand span {
    color: #2563eb;
}

/* ---- Title ---- */
.auth-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    text-align: center;
}

/* ---- Form ---- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus { border-color: #2563eb; }
.form-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* ---- Primary Button (shared) ---- */
.btn-primary-custom {
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-primary-custom:hover { background: #1d4ed8; }
.btn-primary-custom:disabled { background: #93c5fd; cursor: not-allowed; }

/* Button variant (form submit) */
button.btn-primary-custom {
    width: 100%;
    cursor: pointer;
    margin-top: 8px;
}

/* Link variant (navigation) */
a.btn-primary-custom {
    display: inline-block;
    padding: 14px 48px;
    text-decoration: none;
}
a.btn-primary-custom:hover { color: #fff; }

/* ---- Footer ---- */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}
.auth-footer a { color: #2563eb; text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ---- Alert ---- */
.alert-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ---- Resend Button ---- */
.btn-resend {
    padding: 8px 20px;
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-resend:hover { background: #2563eb; color: #fff; }
.btn-resend:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Email Verified (success) ---- */
.success-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.success-icon svg {
    width: 40px;
    height: 40px;
    color: #16a34a;
}
.success-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}
.success-desc {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}
