/* login.css - Enhanced Version with OG Colors */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0d6efd 0%, #6c63ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    text-align: center;
    animation: slideUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd, #6c63ff);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card .logo {
    font-size: 4rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.login-card .logo:hover {
    transform: scale(1.1);
    background: rgba(13, 110, 253, 0.15);
}

.login-card h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.8rem;
}

.login-card .text-muted {
    color: #6c757d !important;
    margin-bottom: 2rem;
}

/* Form Controls */
.form-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: block;
    text-align: left;
}

.form-control {
    border-radius: 30px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    color: #333;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    opacity: 0.7;
}

/* Input Groups */
.input-group {
    border-radius: 30px;
    overflow: hidden;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
    color: #6c757d;
    padding: 0 15px;
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    border-radius: 30px;
    width: 100%;
    padding: 12px 20px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    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 ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0a58ca, #0846c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Links */
.text-muted {
    color: #6c757d !important;
}

.text-muted a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
    transition: all 0.3s ease;
}

.text-muted a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Validation States */
.is-valid {
    border-color: #28a745 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    text-align: left;
    font-weight: 500;
}

/* Alert Messages */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(200, 35, 51, 0.1));
    border-left: 4px solid #dc3545;
    color: #b02a37;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(30, 126, 52, 0.1));
    border-left: 4px solid #28a745;
    color: #1e7e34;
}

/* =============== CIRCULAR PROGRESS BAR STYLES =============== */
.circle-progress-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.circle-error-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.circle-progress, .circle-error {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 8;
}

.circle-progress-bar {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    animation: circleProgress 2s ease-out forwards;
}

.circle-error-bar {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    animation: circleError 1.5s ease-out forwards;
}

.circle-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 48px;
    color: #28a745;
    font-weight: bold;
    animation: checkmarkPop 0.5s ease-out 1.5s forwards;
}

.circle-crossmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 48px;
    color: #dc3545;
    font-weight: bold;
    animation: crossmarkPop 0.5s ease-out 1s forwards;
}

/* Circular Progress Animation */
@keyframes circleProgress {
    0% {
        stroke-dashoffset: 339.292;
        stroke: #0d6efd;
    }
    70% {
        stroke-dashoffset: 0;
        stroke: #28a745;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #28a745;
    }
}

/* Circular Error Animation */
@keyframes circleError {
    0% {
        stroke-dashoffset: 339.292;
        stroke: #dc3545;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #dc3545;
    }
}

/* Checkmark Animation */
@keyframes checkmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Crossmark Animation */
@keyframes crossmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* =============== MODAL STYLES =============== */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 25px;
    border: none;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
}

.modal-header.bg-success {
    background: linear-gradient(135deg, #28a745, #218838) !important;
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 30px 25px;
    text-align: center;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.modal-footer .btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
}

.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.fade.show .modal-dialog {
    transform: scale(1);
}

.modal-backdrop.show {
    opacity: 0.7;
    background: linear-gradient(135deg, #0d6efd, #6c63ff);
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-card .logo {
        font-size: 3rem;
    }
    
    .login-card h3 {
        font-size: 1.5rem;
    }
    
    .btn-login {
        padding: 10px 16px;
    }
    
    .circle-progress-container,
    .circle-error-container {
        width: 100px;
        height: 100px;
    }
    
    .circle-checkmark,
    .circle-crossmark {
        font-size: 40px;
    }
}

/* =============== SCROLLBAR STYLING =============== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}