/* Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #F5F5F5;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* Left Panel - Branding */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #c91d2b 0%, #a01621 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -30%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.brand-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    opacity: 0.95;
}

.brand-description {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Right Panel - Login Form */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

.login-card {
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    color: #31566D;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: #78909C;
    font-size: 16px;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.alert svg {
    flex-shrink: 0;
}

/* Login Form */
.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #31566D;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #31566D;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #c91d2b;
    box-shadow: 0 0 0 4px rgba(201, 29, 43, 0.1);
}

.form-control::placeholder {
    color: #B0BEC5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #c91d2b 0%, #a01621 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a01621 0%, #8a1219 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 29, 43, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #E0E0E0;
}

.login-help {
    color: #78909C;
    font-size: 13px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-left {
        padding: 40px;
    }

    .brand-title {
        font-size: 40px;
    }

    .brand-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        padding: 40px 20px;
        min-height: 300px;
    }

    .brand-title {
        font-size: 32px;
    }

    .brand-subtitle {
        font-size: 18px;
    }

    .login-right {
        padding: 40px 20px;
    }

    .login-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 28px;
    }

    .brand-subtitle {
        font-size: 16px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }
}
