/* ============================================
   Scrutiny Pulse - Login Page Styles
   Brand Colors: Indigo #4F46E5, Sky Blue #0EA5E9
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F7 100%);
    min-height: 100vh;
    color: #1E293B;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Section */
.scrutiny-login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.scrutiny-login-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.scrutiny-login-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.login-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    min-height: 600px;
}

/* Brand Section */
.brand-section {
    background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.logo-placeholder {
    margin-bottom: 30px;
}

.logo-mark {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 50px;
}

.brand-illustration {
    position: relative;
    height: 200px;
    margin-top: 40px;
}

.illustration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 120px;
    height: 120px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    top: 60px;
    left: 20%;
    animation-delay: 2s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 100px;
    right: 20%;
    animation-delay: 4s;
}

.illustration-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Login Card */
.login-card {
    background: #FFFFFF;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, #4F46E5 0%, #0EA5E9 100%);
    width: 100%;
}

.card-content {
    padding: 50px 50px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-header {
    margin-bottom: 35px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 15px;
    color: #64748B;
    font-weight: 400;
}

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.alert i {
    font-size: 16px;
}

/* Form Styles */
.login-form {
    flex: 1;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    font-size: 15px;
    color: #1E293B;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #4F46E5;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: #94A3B8;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 42px;
    color: #94A3B8;
    font-size: 16px;
    transition: color 0.3s ease;
}

.form-group.focused .input-icon {
    color: #4F46E5;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.forgot-link {
    font-size: 14px;
    font-weight: 500;
    color: #4F46E5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #0EA5E9;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(4px);
}

/* Register Link */
.register-link {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
}

.register-link p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

.register-link a {
    color: #1E293B;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #4F46E5;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

.badge-item i {
    font-size: 14px;
    color: #4F46E5;
}

/* Responsive Design */
@media (max-width: 968px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .brand-section {
        padding: 40px 30px;
        min-height: 300px;
    }

    .brand-title {
        font-size: 36px;
    }

    .brand-illustration {
        height: 150px;
        margin-top: 30px;
    }

    .card-content {
        padding: 40px 35px 35px;
    }
}

@media (max-width: 568px) {
    .scrutiny-login-section {
        padding: 20px 15px;
    }

    .login-wrapper {
        border-radius: 20px;
        min-height: auto;
    }

    .brand-section {
        padding: 35px 25px;
        min-height: 250px;
    }

    .logo-mark {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .brand-title {
        font-size: 28px;
    }

    .brand-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .brand-illustration {
        height: 120px;
        margin-top: 20px;
    }

    .card-content {
        padding: 35px 25px 30px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .security-badges {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .badge-item {
        font-size: 11px;
    }
}

@media (max-width: 384px) {
    .card-content {
        padding: 30px 20px 25px;
    }

    .form-input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }

    .input-icon {
        left: 14px;
        top: 38px;
        font-size: 14px;
    }

    .login-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .scrutiny-login-section {
        background: #FFFFFF;
    }
    
    .brand-section,
    .security-badges {
        display: none;
    }
}
