:root {
    --primary-gradient: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 86, 179, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 86, 179, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Container */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styling */
.login-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

.login-card:hover {
    box-shadow: 0 15px 50px rgba(0, 86, 179, 0.25);
    transform: translateY(-4px);
}

.login-card-header {
    background: var(--primary-gradient);
    color: white;
    padding: 40px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login-card-header small {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Card Body */
.login-card-body {
    padding: 32px 24px;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1f3a5f;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    padding-right: 45px;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
    color: #1f3a5f;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 38px;
    height: 38px;
    border-radius: 6px;
}

.toggle-password:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.toggle-password:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.toggle-password:active {
    transform: scale(0.95);
}

.toggle-password i {
    font-size: 1.1rem;
}

/* Submit Button */
.btn-login {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading State */
.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Footer Link */
.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e7ff;
}

.login-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.login-footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* SweetAlert2 Custom Styling */
.swal2-popup {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.swal2-title {
    color: #1f3a5f;
    font-weight: 700;
    font-size: 1.5rem;
}

.swal2-html-container {
    color: #64748b;
    font-size: 1rem;
}

.swal2-confirm {
    background: var(--primary-gradient) !important;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25) !important;
}

.swal2-confirm:hover {
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.35) !important;
}

.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 86, 179, 0.25) !important;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card-header {
        padding: 32px 20px;
    }

    .login-card-body {
        padding: 24px 20px;
    }

    .login-card-header h2 {
        font-size: 1.5rem;
    }

    .form-control {
        padding-right: 40px;
    }

    .toggle-password {
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

.btn-google {
    background-color: #4285F4;
    color: white;
    border: none;
}

.btn-google:hover {
    background-color: #357ae8;
    color: white;
    text-decoration: none;
}