/* =============================================
   AISSURE Authentication - Stylesheet
   ============================================= */

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --danger-color: #E85D75;
    --success-color: #7ED321;
    --warning-color: #F5A623;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --text-color: #34495E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== Container ===== */
.auth-container {
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Card ===== */
.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-header .logo {
    max-width: 250px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.auth-body {
    padding: 40px 30px;
}

.auth-footer {
    background: var(--light-color);
    padding: 20px;
    text-align: center;
    color: var(--text-color);
    font-size: 0.85rem;
}

/* ===== Form ===== */
.auth-form {
    margin-top: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #E0E0E0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-control-lg {
    padding: 15px 20px;
    font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-danger {
    background: #ffe5e9;
    color: var(--danger-color);
}

.alert-success {
    background: #e8f8e5;
    color: var(--success-color);
}

.alert-info {
    background: #e3f2fd;
    color: #1976d2;
}

/* ===== App Selection ===== */
.select-app-container {
    padding: 20px 0;
}

.app-card {
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-icon {
    margin-bottom: 20px;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.app-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.app-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.app-card:hover .app-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Password Strength ===== */
.bg-light {
    background-color: #f8f9fa !important;
}

.rounded {
    border-radius: 10px !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
    }

    .auth-header {
        padding: 30px 20px;
    }

    .auth-body {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .app-card {
        margin-bottom: 15px;
    }
}

/* ===== Validation ===== */
.text-danger {
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.field-validation-error {
    color: var(--danger-color);
    font-size: 0.875rem;
}

.input-validation-error {
    border-color: var(--danger-color) !important;
}

/* ===== Links ===== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== Loading Spinner ===== */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    100% {
        transform: rotate(360deg);
    }
}

/* ===== Icons ===== */
.fas, .far {
    margin-right: 8px;
}

/* ===== Checkboxes ===== */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border-radius: 4px;
    border: 2px solid #E0E0E0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}




