:root {
    --primary-color: #2196F3;
    --primary-dark: #1565C0;
    --primary-light: #64B5F6;
    --secondary-color: #2c3e50;
    --accent-color: #FF9800;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --error-color: #dc3545;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(33, 150, 243, 0.08);
    border-radius: 50%;
    animation: float 25s linear infinite;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(33, 150, 243, 0.06);
    border-radius: 50%;
    animation: float 30s linear infinite reverse;
    z-index: 0;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    position: relative;
    z-index: 10;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
    z-index: 10;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.navbar-brand img {
    height: 50px;
    margin-right: 12px;
}

.navbar-brand .sub-title {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 400;
    margin-top: 2px;
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* Login Section */
.login-section {
    padding: 60px 0;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 30px;
    text-align: center;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>'); */
    background-size: 100px 100px;
}

.login-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    backdrop-filter: blur(10px);
}

.login-header-icon i {
    font-size: 25px;
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 2rem;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.login-body {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.form-group label .required {
    color: var(--error-color);
    margin-left: 3px;
}

select.form-control {
    padding: 0px 15px;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--error-color);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    font-size: 13px;
    margin-top: 5px;
    color: var(--error-color);
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 45px;
}

.input-group-append {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.input-group-append button {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 5px;
    cursor: pointer;
    transition: color 0.3s;
}

.input-group-append button:hover {
    color: var(--primary-color);
}

.form-text {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

.recaptcha-fluid {
    position: relative;
    width: 100%;
    min-height: 78px;
    overflow: hidden;
}

.recaptcha-fluid .g-recaptcha {
    display: inline-block;
    width: 304px;
    max-width: none;
    transform-origin: left top;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.remember-me label {
    margin: 0;
    font-size: 14px;
    color: var(--secondary-color);
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    color: white;
}

.btn-submit:disabled {
    background: #72b9f8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.register-link p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 15px;
    color: #6c757d;
    font-size: 13px;
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-box-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.info-box-title i {
    margin-right: 10px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
    font-size: 13px;
}

.info-box li {
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-header {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-body {
        padding: 30px 20px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

.input-with-icon .form-control {
    padding-left: 45px;
}
