// assets/css/login.css

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ADD8E6;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 1px;
}

h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.login-container {
    background: #1e3a5f;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 800px;
    width: 100%;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
}

.login-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 15px 40px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-banner img {
    max-width: 150px;
    margin-bottom: 5px;
}

.login-banner h2 {
    font-size: 32px;
    margin-bottom: 4px;
    font-weight: bold;
}

.login-banner p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.login-banner .icon {
    margin-top: 8px;
    font-size: 48px;
}

.login-form {
    padding: 40px 40px;
    background: white;
}

.login-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.login-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
}

.login-tab:hover {
    color: #1e3a5f;
}

.login-tab.active {
    color: #1e3a5f;
    border-bottom: 3px solid #1e3a5f;
}

.login-tab i {
    margin-right: 8px;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-label i {
    margin-right: 6px;
    color: #1e3a5f;
}

.password-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-control::placeholder {
    color: #aaa;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 8px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    background: none;
    border: none;
    padding: 0;
}

.toggle-password:hover {
    color: #1e3a5f;
}

.forgot-password {
    text-align: right;
    margin-bottom: 12px;
}

.forgot-link {
    color: #1e3a5f;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    text-decoration: underline;
}

.forgot-link i {
    margin-right: 4px;
}

.btn-login {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-right: 8px;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.alert i {
    margin-right: 10px;
    font-size: 16px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.close-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
    padding: 0;
}

.register-link {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.register-link a:hover {
    text-decoration: underline;
}

.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    background: rgba(30, 58, 95, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.back-home:hover {
    background: rgba(30, 58, 95, 0.9);
    color: white;
}

.back-home i {
    font-size: 14px;
}

/* Override footer styles to prevent flickering */
.main-footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
}

.marquee-container {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-banner {
        padding: 40px 30px;
        min-height: 250px;
    }

    .login-form {
        padding: 40px 30px;
    }

    .login-banner h2 {
        font-size: 24px;
    }

    .login-banner p {
        font-size: 14px;
    }

    h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .back-home {
        font-size: 14px;
        padding: 8px 15px;
    }

    .form-control {
        padding: 14px;
        font-size: 16px;
    }

    .btn-login {
        padding: 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        max-width: 100%;
    }

    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-banner {
        padding: 30px 20px;
        min-height: 220px;
    }

    .login-form {
        padding: 30px 20px;
    }

    .login-banner img {
        max-width: 120px;
        margin-bottom: 20px;
    }

    .login-banner h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .login-banner p {
        font-size: 13px;
    }

    .login-tab {
        font-size: 13px;
        padding: 12px 8px;
    }

    .btn-login {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 15px;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .form-control {
        padding: 12px;
        font-size: 16px;
    }

    .form-label {
        font-size: 13px;
    }

    .back-home {
        font-size: 12px;
        padding: 8px 12px;
        top: 10px;
        left: 10px;
    }

    .back-home i {
        font-size: 12px;
    }

    .register-link {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .login-banner h2 {
        font-size: 18px;
    }

    .login-tab {
        font-size: 12px;
        padding: 10px 5px;
    }

    .form-control {
        font-size: 16px;
    }
}

