/* ===================================
   LOGIN PAGE - Outcrowd/Modern Dashboard Style
   =================================== */

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

* {
    box-sizing: border-box;
}

.login-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}

/* Dark overlay for contrast */
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* ===================================
   MAIN FLOATING CARD
   =================================== */
.login-card {
    width: 100%;
    max-width: 1300px;
    height: 680px;
    background: #FFFFFF;
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ===================================
   LEFT PANEL - Visual/Branding (Card in Card)
   =================================== */
.login-page .visual-panel {
    width: 45%;
    background-size: cover;
    background-position: center;
    margin: 10px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Dark gradient overlay for text readability */
.login-page .visual-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

/* Glow effect */
.login-page .visual-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 2;
}

/* Decorative elements - subtle white circles */
.login-page .visual-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.login-page .visual-circle-1 {
    width: 400px;
    height: 400px;
    top: -120px;
    right: -120px;
}

.login-page .visual-circle-2 {
    width: 250px;
    height: 250px;
    bottom: -60px;
    left: -60px;
}

.login-page .visual-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 20%;
}

/* Logo icon */
.login-page .visual-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Hero Tagline */
.login-page .visual-tagline {
    margin-top: 28px;
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.login-page .visual-tagline h2 {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 300;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-page .visual-tagline h2 strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-top: 4px;
    color: #FFFFFF;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.login-page .visual-tagline p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 12px 0 0 0;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* ===================================
   RIGHT PANEL - Form
   =================================== */
.login-page .form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 48px;
}

/* Header */
.login-page .form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.login-page .header-logo {
    height: 50px;
    width: auto;
}

/* Form content */
.login-page .form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

/* Title */
.login-page .form-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    letter-spacing: -0.03em;
}

.login-page .form-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 18px 0;
}

/* Error alert */
.login-page .error-alert {
    background: #FEF2F2;
    border-radius: 0.5rem;
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.login-page .error-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.login-page .error-alert-title {
    font-size: 14px;
    font-weight: 600;
    color: #991B1B;
    margin: 0 0 4px 0;
}

.login-page .error-alert-message {
    font-size: 13px;
    color: #DC2626;
    margin: 0;
}

/* Form fields */
.login-page .form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-page .field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-page .field-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
}

/* Filled Input Style */
.login-page .field-input-wrapper {
    position: relative;
}

.login-page .field-input {
    width: 100%;
    height: 46px;
    background: #F3F4F6;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 0 14px;
    padding-left: 44px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    transition: all 0.2s ease;
}

.login-page .field-input::placeholder {
    color: #9CA3AF;
}

.login-page .field-input:hover {
    background: #EBEDF0;
}

.login-page .field-input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: #7C3AED;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.login-page .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    transition: color 0.2s ease;
}

.login-page .field-input:focus + .field-icon,
.login-page .field-input-wrapper:focus-within .field-icon {
    color: #7C3AED;
}

/* Forgot password */
.login-page .forgot-link {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 500;
    color: #7C3AED;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.login-page .forgot-link:hover {
    color: #A855F7;
    text-decoration: underline;
}

/* Submit button */
.login-page .submit-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    border: none;
    border-radius: 0.5rem;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.login-page .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.login-page .submit-btn:active {
    transform: translateY(0);
}

.login-page .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Sign up prompt */
.login-page .signup-prompt {
    text-align: center;
    font-size: 13px;
    color: #6B7280;
    margin-top: 16px;
}

.login-page .signup-prompt a {
    color: #7C3AED;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.login-page .signup-prompt a:hover {
    color: #A855F7;
    text-decoration: underline;
}

/* Footer */
.login-page .form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 16px;
    gap: 16px;
    font-size: 11px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.login-page .form-footer a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-page .form-footer a:hover {
    color: #6B7280;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-page .animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

.login-page .delay-1 { animation-delay: 0.1s; opacity: 0; }
.login-page .delay-2 { animation-delay: 0.15s; opacity: 0; }
.login-page .delay-3 { animation-delay: 0.2s; opacity: 0; }
.login-page .delay-4 { animation-delay: 0.25s; opacity: 0; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.login-page .animate-shake {
    animation: shake 0.4s ease-in-out;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        max-width: 480px;
        height: auto;
    }

    .login-page .visual-panel {
        width: auto;
        margin: 16px 16px 0 16px;
        padding: 48px 24px;
        min-height: 220px;
    }

    .login-page .visual-logo {
        width: 100px;
    }

    .login-page .visual-tagline {
        margin-top: 24px;
        padding: 0 16px;
    }

    .login-page .visual-tagline h2 {
        font-size: 18px;
    }

    .login-page .visual-tagline h2 strong {
        font-size: 22px;
    }

    .login-page .visual-tagline p {
        font-size: 11px;
        margin-top: 12px;
    }

    .login-page .form-panel {
        padding: 32px 24px;
    }

    .login-page .form-header {
        margin-bottom: 32px;
    }

    .login-page .form-title {
        font-size: 26px;
    }

    .login-page .form-subtitle {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 16px;
    }

    .login-card {
        border-radius: 24px;
    }

    .login-page .visual-panel {
        margin: 12px 12px 0 12px;
        border-radius: 18px;
        padding: 36px 20px;
        min-height: 180px;
    }

    .login-page .form-panel {
        padding: 24px 20px;
    }

    .login-page .field-input {
        height: 52px;
    }

    .login-page .submit-btn {
        height: 52px;
    }

    .login-page .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .login-page .visual-logo,
    .login-page .animate-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
