/* ============================
   MODERN LOGIN PAGE STYLES
   ============================ */

:root {
    --login-navy: #1a365d;
    --login-green: #48bb78;
    --login-green-hover: #38a169;
    --login-bg-overlay: rgba(26, 54, 93, 0.85);
    --login-white: #ffffff;
    --login-gray-100: #f7fafc;
    --login-gray-200: #edf2f7;
    --login-gray-600: #718096;
    --login-gray-800: #2d3748;
    --login-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body.login-layout-body {
    font-family: 'Inter', sans-serif;
    background-color: var(--login-navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    max-width: 1000px;
    width: 100%;
    background: var(--login-white);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--login-shadow-lg);
    min-height: 600px;
}

/* Side Panel (Image & Project Info) */
.login-side-panel {
    flex: 1;
    position: relative;
    background-image: url('/images/bg/login-branding-bg.png');
    background-size: cover;
    background-position: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--login-white);
}

.login-side-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.4) 0%, rgba(26, 54, 93, 0.4) 100%);
    z-index: 1;
}

.login-side-content {
    position: relative;
    z-index: 2;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.concept-badge {
    background: var(--login-green);
    color: white;
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 2rem;
}

.project-brand {
    margin-top: auto;
    margin-bottom: auto;
}

.project-logo-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-name {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.project-tagline {
    font-size: 1.1rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.side-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Form Panel */
.login-form-panel {
    flex: 1.2;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.ip-badge {
    color: var(--login-white);
    background: #3182ce;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: monospace;
}

.lang-selector {
    font-size: 0.85rem;
    color: var(--login-gray-600);
}

.login-logo-main {
    max-height: 48px;
    margin-bottom: 1.5rem;
}

.form-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--login-gray-800);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--login-gray-600);
    font-size: 0.95rem;
}

/* Inputs */
.form-group-custom {
    margin-bottom: 1.25rem;
}

.input-container {
    position: relative;
}

.form-control-custom {
    width: 100%;
    padding: 12px 18px;
    background: var(--login-gray-100);
    border: 1px solid var(--login-gray-200);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--login-gray-800);
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--login-green);
    background: var(--login-white);
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.1);
}

.form-control-custom.readonly-field {
    background: var(--login-gray-200);
    color: var(--login-gray-600);
    cursor: not-allowed;
    border-color: var(--login-gray-200);
}

.btn-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--login-gray-600);
    cursor: pointer;
    padding: 5px;
}

.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.switch-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--login-gray-800);
    font-weight: 600;
}

.forgot-link {
    color: var(--login-green);
    text-decoration: none;
    font-weight: 600;
}

/* Submit Button */
.btn-submit-modern {
    width: 100%;
    padding: 14px;
    background: var(--login-green);
    color: var(--login-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-submit-modern:hover {
    background: var(--login-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-submit-modern:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--login-gray-600);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--login-gray-200);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

/* Social Login */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.btn-social {
    background: none;
    border: none;
    color: var(--login-gray-800);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-social:hover {
    opacity: 0.8;
}

/* Footer */
.login-footer-register {
    text-align: center;
    font-size: 0.9rem;
    color: var(--login-gray-600);
}

.login-footer-register a {
    color: var(--login-green);
    text-decoration: none;
    font-weight: 700;
}

/* Status Messages */
.login-message {
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

.login-message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.login-message.success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

/* Animation for loading */
.spinner-border {
    width: 1.25rem;
    height: 1.25rem;
    border-width: 0.2em;
}

/* Responsive */
@media (max-width: 900px) {
    .login-side-panel {
        display: none;
    }

    .login-container {
        max-width: 500px;
    }
}

@media (max-width: 500px) {
    .login-form-panel {
        padding: 40px 30px;
    }
}