/* QuickPR Modern Authentication Design System */

/* ========================================
   MODERN AUTH DESIGN TOKENS
   ======================================== */

:root {
    /* Premium Color Palette */
    --auth-primary: #667eea;
    --auth-primary-dark: #5a67d8;
    --auth-secondary: #764ba2;
    --auth-accent: #f093fb;
    --auth-success: #43e97b;
    --auth-warning: #fa709a;
    --auth-danger: #ff6b6b;
    --auth-info: #4facfe;
    
    /* Premium Gradients */
    --auth-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --auth-gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --auth-gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --auth-gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --auth-gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --auth-gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    
    /* Glass Morphism */
    --auth-glass-bg: rgba(255, 255, 255, 0.15);
    --auth-glass-border: rgba(255, 255, 255, 0.25);
    --auth-glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    --auth-glass-blur: blur(20px);
    
    /* Premium Shadows */
    --auth-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --auth-shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --auth-shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
    --auth-shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
    --auth-shadow-glow-strong: 0 0 50px rgba(102, 126, 234, 0.5);
    
    /* Premium Border Radius */
    --auth-radius-sm: 12px;
    --auth-radius-md: 20px;
    --auth-radius-lg: 28px;
    --auth-radius-xl: 36px;
    --auth-radius-full: 9999px;
    
    /* Premium Spacing */
    --auth-space-xs: 6px;
    --auth-space-sm: 12px;
    --auth-space-md: 20px;
    --auth-space-lg: 32px;
    --auth-space-xl: 48px;
    --auth-space-2xl: 64px;
    --auth-space-3xl: 96px;
    
    /* Premium Typography */
    --auth-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --auth-font-size-xs: 13px;
    --auth-font-size-sm: 15px;
    --auth-font-size-base: 17px;
    --auth-font-size-lg: 20px;
    --auth-font-size-xl: 24px;
    --auth-font-size-2xl: 32px;
    --auth-font-size-3xl: 40px;
    --auth-font-size-4xl: 56px;
    
    /* Premium Transitions */
    --auth-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --auth-transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --auth-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --auth-transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   MODERN AUTH RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--auth-font-family);
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ========================================
   MODERN AUTH CONTAINER
   ======================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--auth-space-md);
    position: relative;
    background: #f8fafc;
}

/* ========================================
   MODERN AUTH CARD
   ======================================== */

.auth-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    animation: authCardSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
    border-radius: 16px 16px 0 0;
}

/* ========================================
   MODERN AUTH HEADER
   ======================================== */

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.auth-header .logo {
    margin-bottom: 24px;
    display: inline-block;
    transition: var(--auth-transition-normal);
}

.auth-header .logo:hover {
    transform: scale(1.02);
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.auth-header p {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.5;
}

/* ========================================
   MODERN AUTH MESSAGES
   ======================================== */

.auth-message {
    padding: var(--auth-space-md);
    border-radius: var(--auth-radius-md);
    margin-bottom: var(--auth-space-lg);
    position: relative;
    overflow: hidden;
    animation: authMessageSlideIn 0.4s ease-out;
}

.auth-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f9fafb;
    z-index: -1;
}

.auth-message.success {
    border: 1px solid #d1fae5;
    background: #f0fdf4;
}

.auth-message.error {
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.auth-message i {
    margin-right: var(--auth-space-sm);
    font-size: var(--auth-font-size-lg);
}

.auth-message.success i {
    color: var(--auth-success);
}

.auth-message.error i {
    color: var(--auth-danger);
}

/* ========================================
   MODERN AUTH METHODS
   ======================================== */

.auth-methods {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.method-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: var(--auth-transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #667eea;
    opacity: 0;
    transition: var(--auth-transition-normal);
    z-index: -1;
}

.method-card:hover::before {
    opacity: 0.05;
}

.method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    overflow: hidden;
}

.method-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: methodIconShine 3s ease-in-out infinite;
}

.method-icon i {
    font-size: 20px;
    color: white;
    z-index: 1;
}

.method-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin-bottom: 8px;
}

.method-card p {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

/* ========================================
   MODERN AUTH FORMS
   ======================================== */

.auth-form {
    animation: authFormSlideIn 0.6s ease-out;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: #1f2937;
    transition: var(--auth-transition-normal);
    position: relative;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.form-group input:focus::placeholder,
.form-group select:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: #6b7280;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    font-weight: 400;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--auth-transition-normal);
}

.phone-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.country-code {
    padding: 16px 20px;
    background: #f9fafb;
    color: #374151;
    font-weight: 500;
    border-right: 1px solid #e5e7eb;
    font-size: 16px;
}

.phone-input-group input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 16px 20px;
    color: #1f2937;
}

.phone-input-group input:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* ========================================
   MODERN AUTH BUTTONS
   ======================================== */

.auth-button {
    width: 100%;
    padding: 16px 24px;
    background: #667eea;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--auth-transition-normal);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--auth-transition-slow);
}

.auth-button:hover::before {
    left: 100%;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: #5a67d8;
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button i {
    margin-right: 8px;
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   MODERN AUTH ACTIONS
   ======================================== */

.form-actions {
    text-align: center;
    margin-top: 24px;
}

.form-actions .btn-link {
    font-size: 16px;
    font-weight: 500;
}

/* ========================================
   MODERN AUTH FOOTER
   ======================================== */

.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: var(--auth-transition-fast);
}

.auth-footer a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* ========================================
   MODERN AUTH ANIMATIONS
   ======================================== */

@keyframes authCardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes authCardGlow {
    0% {
        opacity: 0.3;
        transform: rotate(0deg);
    }
    100% {
        opacity: 0.6;
        transform: rotate(360deg);
    }
}

@keyframes authMessageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authFormSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes methodIconShine {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   MODERN AUTH RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .auth-container {
        padding: var(--auth-space-sm);
    }
    
    .auth-card {
        padding: var(--auth-space-xl);
        margin: var(--auth-space-sm);
        border-radius: var(--auth-radius-lg);
    }
    
    .auth-header h2 {
        font-size: var(--auth-font-size-2xl);
    }
    
    .auth-header p {
        font-size: var(--auth-font-size-base);
    }
    
    .method-card {
        padding: var(--auth-space-lg);
    }
    
    .method-icon {
        width: 50px;
        height: 50px;
    }
    
    .method-icon i {
        font-size: var(--auth-font-size-xl);
    }
    
    .method-card h3 {
        font-size: var(--auth-font-size-lg);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--auth-space-md);
        font-size: var(--auth-font-size-base);
    }
    
    .auth-button {
        padding: var(--auth-space-md) var(--auth-space-lg);
        font-size: var(--auth-font-size-base);
    }
    
    .otp-input-group {
        gap: var(--auth-space-xs);
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: var(--auth-font-size-lg);
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: var(--auth-space-lg);
        margin: var(--auth-space-xs);
    }
    
    .auth-header h2 {
        font-size: var(--auth-font-size-xl);
    }
    
    .method-card {
        padding: var(--auth-space-md);
    }
    
    .method-icon {
        width: 45px;
        height: 45px;
    }
    
    .method-icon i {
        font-size: var(--auth-font-size-lg);
    }
    
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: var(--auth-font-size-base);
    }
}

/* ========================================
   MODERN AUTH UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--auth-space-xs); }
.mb-2 { margin-bottom: var(--auth-space-sm); }
.mb-3 { margin-bottom: var(--auth-space-md); }
.mb-4 { margin-bottom: var(--auth-space-lg); }
.mb-5 { margin-bottom: var(--auth-space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--auth-space-xs); }
.mt-2 { margin-top: var(--auth-space-sm); }
.mt-3 { margin-top: var(--auth-space-md); }
.mt-4 { margin-top: var(--auth-space-lg); }
.mt-5 { margin-top: var(--auth-space-xl); }

.hidden { display: none; }
.visible { display: block; }

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* ========================================
   INTERNATIONAL PHONE INPUT STYLES
   ======================================== */

.iti {
    width: 100%;
    font-family: var(--auth-font-family);
}

.iti__flag-container {
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    border-radius: 12px 0 0 12px;
}

.iti__selected-flag {
    padding: 16px 12px;
    background: #f9fafb;
    border-radius: 12px 0 0 12px;
}

.iti__flag {
    margin-right: 8px;
}

.iti__arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6b7280;
    margin-left: 6px;
}

.iti__country-list {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    max-height: 200px;
    overflow-y: auto;
}

.iti__country {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: var(--auth-transition-fast);
}

.iti__country:hover {
    background: #f9fafb;
}

.iti__country.iti__active {
    background: #667eea;
    color: white;
}

.iti__country.iti__active .iti__dial-code {
    color: rgba(255, 255, 255, 0.8);
}

.iti__dial-code {
    color: #6b7280;
    font-size: 14px;
}

.iti__country-name {
    color: #1f2937;
    font-size: 14px;
}

.iti__country.iti__active .iti__country-name {
    color: white;
}

.iti__search-input {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 8px;
    width: calc(100% - 16px);
    font-size: 14px;
}

.iti__search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
} 