:root {
    --primary-blue: #0f172a;
    --secondary-blue: #1e293b;
    --accent-blue: #3b82f6;
    --light-blue: #dbeafe;
    --ocean-blue: #1e40af;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #03A9F4 0%, #a1e2ff 50%, #03A9F4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent-blue), var(--ocean-blue));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    top: 70%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--ocean-blue), var(--accent-blue));
    border-radius: 30%;
    animation: float 4s ease-in-out infinite reverse;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-blue), var(--light-blue));
    border-radius: 20%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Main container */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 440px;
    width: 100%;
    margin: 20px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header section */
.login-header {
    text-align: center;
    padding: 20px 40px 20px;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            rgba(30, 64, 175, 0.05) 100%);
    position: relative;
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    /* background: linear-gradient(135deg, var(--accent-blue), var(--ocean-blue)); */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3); */
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    /* background: linear-gradient(135deg, var(--accent-blue), var(--ocean-blue)); */
    border-radius: 22px;
    z-index: -1;
}

.logo-container i {
    font-size: 2.2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.app-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.app-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0;
}

/* Form section */
.login-body {
    padding: 20px 30px 20px;
}

.form-group {
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.form-control-modern {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 500;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-control-modern::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.form-control-modern:focus+.input-icon {
    color: var(--accent-blue);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

/* Select dropdown modern styling */
.select-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 50px;
}

/* Remember me and forgot password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.form-check-modern {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-check-modern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.form-check-modern input[type="checkbox"]:checked {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.form-check-modern input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
}

.forgot-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--ocean-blue);
    text-decoration: underline;
}

/* Login button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #607D8B, #4e6874);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 #4e6874;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 #4e6874;
}

.btn-login:active {
    transform: translateY(0);
}

/* Loading state */
.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.login-footer {
    text-align: center;
    padding: 20px 40px 30px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(248, 250, 252, 0.5);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 576px) {
    .login-container {
        margin: 15px;
        border-radius: 20px;
    }

    .login-header,
    .login-body,
    .login-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .app-title {
        font-size: 1.5rem;
    }

    .form-control-modern {
        padding: 14px 18px 14px 45px;
    }

    .input-icon {
        left: 16px;
    }

    .password-toggle {
        right: 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-container {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(71, 85, 105, 0.3);
    }

    .login-header {
        background: linear-gradient(135deg,
                rgba(59, 130, 246, 0.15) 0%,
                rgba(30, 64, 175, 0.1) 100%);
    }

    .form-control-modern {
        background: rgba(51, 65, 85, 0.3);
        border-color: rgba(71, 85, 105, 0.5);
        color: #f1f5f9;
    }

    .login-footer {
        background: rgba(15, 23, 42, 0.3);
        border-top-color: rgba(71, 85, 105, 0.3);
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}