/* ========================================
   LOGIN PAGE CSS
======================================== */

/* CSS Variables */
:root {
    --metallic-light: #D8DEE4;
    --metallic-mid: #8B98A8;
    --metallic-dark: #4A5A6A;
    --background-dark: #1F2B3A;
    --background-darker: #151E2A;
    --pure-white: #FFFFFF;
    --pure-black: #000000;
    --text-gray: #3A4A5A;
    --error-red: #D32F2F;
    --success-green: #2E7D32;
}

/* MAIN PAGE */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--metallic-light), var(--pure-white));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    max-width: 1000px;
    width: 100%;
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(74, 90, 106, 0.15);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* LEFT SIDE */
.login-left {
    background: linear-gradient(135deg, var(--metallic-dark), var(--background-darker));
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.brand-section {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.brand-logo i {
    font-size: 40px;
    color: var(--pure-white);
}

.brand-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--pure-white);
    margin-bottom: 12px;
}

.brand-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--pure-white);
    font-size: 15px;
    font-weight: 600;
}

.feature-item i {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* RIGHT SIDE */
.login-right {
    padding: 60px 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.btn-close-login {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--metallic-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--metallic-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-close-login:hover {
    background: var(--metallic-dark);
    color: var(--pure-white);
    transform: rotate(90deg);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--pure-black);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-gray);
}

/* FORM ELEMENTS */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label i {
    font-size: 16px;
    color: var(--metallic-dark);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--metallic-light);
    border-radius: 10px;
    font-size: 15px;
    color: var(--pure-black);
    background: var(--pure-white);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--metallic-dark);
    box-shadow: 0 0 0 4px rgba(74, 90, 106, 0.1);
}

.form-input.error {
    border-color: var(--error-red);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--metallic-mid);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--metallic-dark);
}

.error-message {
    font-size: 13px;
    color: var(--error-red);
    display: none;
}

.error-message.show {
    display: block;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--metallic-dark);
}

.forgot-password {
    font-size: 14px;
    color: var(--metallic-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--background-darker);
}

/* LOGIN BUTTON */
.btn-login {
    width: 100%;
    background: var(--background-darker);
    color: var(--pure-white);
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--background-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 30, 42, 0.3);
}

.btn-login:disabled {
    background: var(--metallic-mid);
    cursor: not-allowed;
    transform: none;
}

.btn-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* DIVIDER */
.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--metallic-light);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: var(--pure-white);
    padding: 0 15px;
    font-size: 13px;
    color: var(--metallic-mid);
    font-weight: 600;
}

/* SOCIAL LOGIN */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--metallic-light);
    border-radius: 10px;
    background: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social i {
    font-size: 20px;
}

.btn-social.google {
    color: #DB4437;
}

.btn-social.google:hover {
    background: #DB4437;
    color: var(--pure-white);
    border-color: #DB4437;
}

.btn-social.facebook {
    color: #1877F2;
}

.btn-social.facebook:hover {
    background: #1877F2;
    color: var(--pure-white);
    border-color: #1877F2;
}

/* SIGNUP LINK */
.signup-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-gray);
}

.signup-link a {
    color: var(--metallic-dark);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.signup-link a:hover {
    color: var(--background-darker);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-left {
        padding: 40px 30px;
    }
    
    .brand-title {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .login-page {
        padding: 20px;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 40px 30px;
    }
    
    .form-title {
        font-size: 24px;
    }
}

@media (max-width: 575.98px) {
    .login-right {
        padding: 30px 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
