/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Circles */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #9E22FC, #000000);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #000000, #000000);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.bg-circle-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #6416A0, #6416A0);
    top: 50%;
    right: -80px;
    animation-delay: 10s;
}

.bg-circle-4 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #9E22FC, #9E22FC);
    bottom: 20%;
    left: 10%;
    animation-delay: 15s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    25% {
        transform: translateY(-30px) translateX(20px) scale(1.05);
    }

    50% {
        transform: translateY(-50px) translateX(-20px) scale(0.95);
    }

    75% {
        transform: translateY(-20px) translateX(30px) scale(1.02);
    }
}

/* Main Container */
.auth-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    min-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Login Card */
.login-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-img {
    height: 100px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    /*transform: rotate(360deg);*/
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 14px;
    color: #888;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #125C78;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(4, 169, 245, 0.1);
}

.form-control::placeholder {
    color: #aaa;
}

/* Button Styling */
.btn-login {
    width: 70%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    float:left;
    margin-right:5%;
    color: #fff;
    background: linear-gradient(135deg, #125C78, #000000);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(197,122,253, 0.3);
    margin-top: 10px;
} 

    .btn-login:hover {
        background: linear-gradient(135deg, #125C78, #125C78);
        box-shadow: 0 12px 30px rgba(4, 169, 245, 0.4);
        transform: translateY(-2px);
    }

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(4, 169, 245, 0.3);
}
/* Button Styling */
.btn-login-ad {
    width: 20%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    float: right;
    margin-right: 5%;
    color: #fff;
    background: linear-gradient(135deg, #125C78, #000000);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(197,122,253, 0.3);
    margin-top: 10px;
}

    .btn-login-ad:hover {
        background: linear-gradient(135deg, #125C78, #125C78);
        box-shadow: 0 12px 30px rgba(4, 169, 245, 0.4);
        transform: translateY(-2px);
    }

    .btn-login-ad:active {
        transform: translateY(0);
        box-shadow: 0 6px 15px rgba(4, 169, 245, 0.3);
    }

    .btn-login-ad a {
    color:#fff;
    text-decoration:none;
    }

    /* Error Message */
    .error-message {
        background: #fee;
        color: #c33;
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 15px;
        margin-top: 10px;
        font-size: 14px;
        border-left: 4px solid #c33;
        display: none;
    }

.error-message.show {
    display: block;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Footer Links */
.form-footer {
    margin-top: 25px;
    text-align: center;
}

.footer-link {
    color: #04a9f5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0288d1;
    text-decoration: underline;
}

/* Footer Outside Card */
.footer-outside {
    text-align: center;
    width: 100%;
}

.footer-outside p {
    color: rgb(48, 47, 47, 0.90);
    font-size: 13px;
    margin: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Responsive Design */
@media (max-width: 768px) {
    .auth-wrapper {
        max-width: 90%;
    }

    .login-card {
        padding: 30px 25px;
    }

    .bg-circle {
        opacity: 0.4;
    }
}

/* Depot Code Special Styling */
.depot-code-input {
    max-width: 160px;
}

/* Loading Animation */
.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Input Icons (Optional Enhancement) */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
}

.input-group .form-control {
    padding-left: 40px;
}

/* Login Loader */
.login-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(4, 169, 245, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(4, 169, 245, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(4, 169, 245, 0.2);
    border-top-color: #04a9f5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    margin-top: 15px;
    font-size: 14px;
    color: #04a9f5;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Success Message */
.error-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

/* Button Disabled State */
.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}
