/* Admin Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f1a;
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* Background Shapes */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    bottom: -150px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

/* Login Wrapper */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

    .login-logo img {
        width: 140px;
        height: auto;
    }

/* Title */
.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #fff;
}

.login-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 32px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.875rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 8px;
    }

        .form-group label i {
            font-size: 1rem;
            color: #ffc107;
        }

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Exo', sans-serif;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .form-control:focus {
        background: rgba(255, 255, 255, 0.12);
        border-color: #ffc107;
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
    }

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

    .password-wrapper .form-control {
        padding-right: 48px;
    }

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: #ffc107;
    }

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #ffc107;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Exo', sans-serif;
    color: #0f0f1a;
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #ffca28 0%, #ffc107 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.35);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
}

    .login-footer p {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.4);
    }

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .modal-overlay.show {
        display: flex;
    }

/* Modal Box */
.modal-box {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: modalIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

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

/* Modal Icon */
.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

    .modal-icon.success {
        background: rgba(40, 167, 69, 0.15);
        color: #28a745;
    }

    .modal-icon.error {
        background: rgba(220, 53, 69, 0.15);
        color: #dc3545;
    }

    .modal-icon i {
        animation: iconPop 0.4s ease-out 0.1s both;
    }

@keyframes iconPop {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Title */
.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

/* Modal Message */
.modal-message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Modal Button */
.btn-modal {
    padding: 12px 40px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Exo', sans-serif;
    color: #0f0f1a;
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn-modal:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
    }

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 24px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-logo img {
        width: 120px;
    }

    .modal-box {
        padding: 30px 24px;
    }
}
