/* ========================================
   LINKADEO - AUTHENTICATION STYLES 2.0
   Spectacular WOW Design with Animations
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* === ANIMATED BACKGROUND === */
.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1d4a 0%, #2d3561 40%, #1e2347 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(73, 158, 241, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.auth-body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 106, 245, 0.15) 0%, transparent 70%);
    animation: rotate 30s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === FLOATING PARTICLES === */
.auth-page::before,
.auth-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    background: rgba(73, 158, 241, 0.1);
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.auth-page::before {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: -5s;
}

.auth-page::after {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    background: rgba(124, 106, 245, 0.1);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, -50px) scale(0.9); }
    75% { transform: translate(40px, -20px) scale(1.05); }
}

/* === AUTH PAGE LAYOUT === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.auth-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

/* === GLASSMORPHISM CARD === */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 550px;
    width: 100%;
    justify-self: end;
    position: relative;
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(73, 158, 241, 0.3), rgba(124, 106, 245, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* === AUTH HEADER === */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.auth-logo .logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #499ef1 0%, #7c6af5 50%, #f7b518 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    position: relative;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.auth-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #1F2937 0%, #4B5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #6B7280;
    font-size: 1.0625rem;
    font-weight: 500;
}

/* === FORM STYLING === */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #374151;
    transition: color 0.2s;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"] {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 2px solid #E5E7EB;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #1F2937;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #499ef1;
    box-shadow:
        0 0 0 4px rgba(73, 158, 241, 0.1),
        0 4px 12px rgba(73, 158, 241, 0.2);
    transform: translateY(-2px);
}

input::placeholder {
    color: #9CA3AF;
}

/* === PASSWORD INPUT === */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input[type="password"] {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    transition: color 0.2s;
    padding: 0.5rem;
}

.password-toggle:hover {
    color: #499ef1;
}

/* === CHECKBOX === */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: #4B5563;
    font-size: 0.9375rem;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkbox-label input[type="checkbox"] + span {
    position: relative;
    padding-left: 2rem;
}

.checkbox-label input[type="checkbox"] + span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-label input[type="checkbox"]:checked + span::before {
    background: linear-gradient(135deg, #499ef1 0%, #7c6af5 100%);
    border-color: #499ef1;
    box-shadow: 0 2px 8px rgba(73, 158, 241, 0.3);
}

.checkbox-label input[type="checkbox"] + span::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%) scale(0) rotate(45deg);
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkbox-label input[type="checkbox"]:checked + span::after {
    transform: translateY(-55%) scale(1) rotate(45deg);
}

.checkbox-label:hover input[type="checkbox"]:not(:checked) + span::before {
    border-color: #499ef1;
    background: rgba(73, 158, 241, 0.05);
}

/* === BUTTON === */
.btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #499ef1 0%, #7c6af5 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(73, 158, 241, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(73, 158, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

/* === AUTH DIVIDER === */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #9CA3AF;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
}

/* === AUTH LINKS === */
.auth-links {
    text-align: center;
    color: #6B7280;
    font-size: 0.9375rem;
}

.link-primary {
    color: #499ef1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.link-primary:hover {
    color: #7c6af5;
    text-decoration: underline;
}

/* === DEMO ACCOUNTS === */
.demo-accounts {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #E5E7EB;
}

.demo-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 1rem;
    text-align: center;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.demo-btn {
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
}

.demo-btn strong {
    color: #1F2937;
    font-weight: 600;
}

.demo-btn span {
    color: #9CA3AF;
    font-size: 0.75rem;
}

.demo-btn:hover {
    border-color: #499ef1;
    background: rgba(73, 158, 241, 0.05);
    transform: translateY(-2px);
}

/* === ILLUSTRATION SIDE === */
.auth-illustration {
    position: relative;
    animation: slideInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    justify-self: start;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.illustration-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        0 4px 16px 0 rgba(73, 158, 241, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.illustration-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.illustration-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* === FEATURES LIST === */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-weight: 500;
    font-size: 1.0625rem;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

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

.feature-item svg {
    flex-shrink: 0;
    color: #10B981;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

/* === ILLUSTRATION STATS === */
.illustration-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: both;
}

.stat-item:nth-child(1) { animation-delay: 0.5s; }
.stat-item:nth-child(2) { animation-delay: 0.6s; }
.stat-item:nth-child(3) { animation-delay: 0.7s; }

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* === PASSWORD STRENGTH === */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8125rem;
    font-weight: 600;
}

.form-help {
    font-size: 0.8125rem;
    color: #9CA3AF;
    margin-top: 0.25rem;
}

/* === PASSWORD REQUIREMENTS === */
.password-requirements {
    background: rgba(73, 158, 241, 0.05);
    border-left: 4px solid #499ef1;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.password-requirements h4 {
    color: #499ef1;
    font-size: 0.9375rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
}

.password-requirements li {
    color: #4B5563;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.password-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #499ef1;
    font-weight: 700;
}

.password-requirements li:last-child {
    margin-bottom: 0;
}

/* === AUTH DESCRIPTION === */
.auth-description {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* === SPINNER === */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === ALERTS === */
.auth-alerts {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    font-weight: 500;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-card {
        justify-self: center;
        max-width: 100%;
    }

    .auth-illustration {
        display: none;
    }
}

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

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .illustration-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
