/**
 * Mango CRM - Auth Pages Styles v2
 * Чистый, современный, премиальный дизайн
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================================
   PAGE WRAPPER
   ========================================================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #09090b;
    padding: 1.5rem;
    position: relative;
}

/* Subtle gradient glow */
.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* =========================================================================
   CARD
   ========================================================================= */
.auth-card {
    width: 100%;
    max-width: 380px;
    background: #111113;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
}

@media (max-width: 440px) {
    .auth-card {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 12px;
    }
}

/* =========================================================================
   LOGO
   ========================================================================= */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fafafa;
    letter-spacing: -0.01em;
}

.auth-logo-text span {
    color: #f97316;
}

/* =========================================================================
   ICON
   ========================================================================= */
.auth-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249,115,22,0.1);
    border-radius: 12px;
}

.auth-icon i {
    font-size: 1.25rem;
    color: #f97316;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
.auth-heading {
    font-size: 1.375rem;
    font-weight: 600;
    color: #fafafa;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-description {
    font-size: 0.875rem;
    color: #71717a;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

/* =========================================================================
   FORM
   ========================================================================= */
.auth-form {
    margin-bottom: 1.5rem;
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 0.5rem;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #fafafa;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input::placeholder {
    color: #52525b;
}

.auth-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.auth-input.is-invalid {
    border-color: #dc2626;
}

/* =========================================================================
   BUTTON
   ========================================================================= */
.auth-submit {
    width: 100%;
    height: 44px;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    background: #f97316;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit:hover {
    background: #ea580c;
}

.auth-submit:active {
    transform: scale(0.98);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-submit i {
    font-size: 1rem;
}

/* =========================================================================
   DIVIDER
   ========================================================================= */
.auth-divider {
    height: 1px;
    background: #27272a;
    margin: 1.5rem 0;
}

/* =========================================================================
   LINKS
   ========================================================================= */
.auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #71717a;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-back:hover {
    color: #a1a1aa;
}

.auth-back i {
    font-size: 0.875rem;
}

.auth-link {
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-footer-text {
    text-align: center;
    font-size: 0.8125rem;
    color: #71717a;
}

/* =========================================================================
   ALERTS
   ========================================================================= */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-alert i {
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #4ade80;
}

.auth-alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #f87171;
}

/* =========================================================================
   CHECKBOX ROW (for login)
   ========================================================================= */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.auth-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #f97316;
}

.auth-checkbox-label {
    font-size: 0.8125rem;
    color: #a1a1aa;
    cursor: pointer;
}

.auth-forgot {
    font-size: 0.8125rem;
    color: #71717a;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-forgot:hover {
    color: #f97316;
}

/* =========================================================================
   INFO BOX (for reset password page)
   ========================================================================= */
.auth-info {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: #a1a1aa;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-info i {
    flex-shrink: 0;
    color: #71717a;
}

.auth-info strong {
    color: #fafafa;
}

/* =========================================================================
   EMAIL BOX (highlighted email display)
   ========================================================================= */
.auth-email-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #fafafa;
}

.auth-email-box i {
    color: #f97316;
}

/* =========================================================================
   STEPS (verification flow steps)
   ========================================================================= */
.auth-steps {
    margin-bottom: 1.5rem;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
}

.auth-step:not(:last-child) {
    border-bottom: 1px solid rgba(39,39,42,0.5);
}

.auth-step-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-step-icon i {
    font-size: 1.125rem;
    color: #f97316;
}

.auth-step-text {
    font-size: 0.8125rem;
    color: #a1a1aa;
}

/* =========================================================================
   ICON VARIANTS
   ========================================================================= */
.auth-icon-lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.auth-icon-lg i {
    font-size: 1.75rem;
}

.auth-icon-success {
    background: rgba(34,197,94,0.1);
}

.auth-icon-success i {
    color: #22c55e;
}

.auth-icon-warning {
    background: rgba(234,179,8,0.1);
}

.auth-icon-warning i {
    color: #eab308;
}

.auth-icon-error {
    background: rgba(239,68,68,0.1);
}

.auth-icon-error i {
    color: #ef4444;
}

.auth-icon-info {
    background: rgba(59,130,246,0.1);
}

.auth-icon-info i {
    color: #3b82f6;
}

/* =========================================================================
   BUTTON VARIANTS
   ========================================================================= */
.auth-submit-secondary {
    background: #27272a;
    color: #fafafa;
}

.auth-submit-secondary:hover {
    background: #3f3f46;
}

.auth-submit-disabled {
    background: #27272a;
    color: #71717a;
    cursor: not-allowed;
}

.auth-submit-disabled:hover {
    background: #27272a;
}
