﻿
/* Login Section */
.login-section {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.75rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #718096;
}

/* Login Options */
.login-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-option {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .login-option.active {
        border-color: #3182ce;
        background: #ebf8ff;
    }

    .login-option img {
        height: 24px;
        width: auto;
    }

/* Form Elements */
.input-group {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .form-input:focus {
        border-color: #3182ce;
        outline: none;
    }

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

/* Submit Buttons */
.submit-button, .nafath-button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button {
    background: #3182ce;
    color: #ffffff;
}

    .submit-button:hover {
        background: #2c5282;
    }

.nafath-button {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .nafath-button:hover {
        background: #edf2f7;
    }

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

    .close-modal:hover {
        color: #333;
    }

/* Verification Styles */
.verification-timer {
    text-align: center;
    margin: 15px 0;
    font-size: 1.2em;
}

.timer-count {
    color: #0056b3;
    font-weight: bold;
}

.code-box {
    background: linear-gradient(145deg, #f3f4f6, #ffffff);
    box-shadow: 5px 5px 10px #d1d1d1, -5px -5px 10px #ffffff;
    padding: 20px 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 36px;
    font-weight: bold;
    color: #0056b3;
    display: inline-block;
    margin: 10px 0;
    font-family: monospace;
    letter-spacing: 2px;
}

    .code-box:hover {
        transform: scale(1.02);
    }

.verification-steps {
    background: #f8f9fa;
    border-right: 4px solid #0056b3;
    text-align: right;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

    .verification-steps ol {
        padding-right: 20px;
        margin: 10px 0;
    }

        .verification-steps ol li {
            margin: 10px 0;
            line-height: 1.6;
        }

/* Spinner Animation */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

/* Utility Classes */
.text-danger {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-muted {
    color: #718096 !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Animations */
@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.alert-success {
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #2f855a;
}

.alert-info {
    background-color: #ebf8ff;
    border: 1px solid #90cdf4;
    color: #2c5282;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .login-card {
        padding: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}
