/* Authentication Pages Styles */

.required {
    color: #e74c3c;
}

.account-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.auth-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.8);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.5);
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title-section h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-primary {
    color: #667eea !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.text-primary:hover {
    color: #5a6fd8 !important;
    text-decoration: underline;
}

/* Card Radio Buttons for Registration */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-radio {
    flex: 1;
    min-width: 150px;
}

.card-radio input[type="radio"] {
    display: none;
}

.card-radio label {
    display: block;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.8);
    text-align: center;
}

.card-radio label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.card-radio input[type="radio"]:checked + label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    font-weight: 600;
    border-left: 4px solid #667eea;
}

/* Navigation button styling */
.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Input field with icon styling */
.input-group-icon {
    position: relative;
}

.input-group-icon .form-control {
    padding-left: 45px;
}

.input-group-icon .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
    transition: color 0.3s ease;
}

.input-group-icon .form-control:focus + .input-icon,
.input-group-icon .form-control:focus ~ .input-icon {
    color: #667eea;
}

/* Button with icon styling */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-with-icon i {
    font-size: 16px;
}

/* Navigation buttons container */
.nav-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.nav-buttons-container .btn {
    flex: 1;
    max-width: 200px;
}

/* Icon positioning for navigation */
.btn-nav-left i {
    margin-right: 8px;
}

.btn-nav-right i {
    margin-left: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password validation styling */
.valid {
    color: #28a745;
    font-weight: 500;
}

.valid:before {
    position: relative;
    left: -10px;
    content: "✔";
    font-weight: bold;
}

.invalid {
    color: #dc3545;
    font-weight: 500;
}

.invalid:before {
    position: relative;
    left: -10px;
    content: "✖";
    font-weight: bold;
}

.password-requirements {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    border-left: 4px solid #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .card-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
        max-width: 100%;
    }
    
    .card-radio {
        width: 100%;
        min-width: unset;
    }
    
    .card-radio-inner {
        padding: 16px 12px;
        min-height: 80px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
}
    
    .form-control {
        padding: 10px 14px;
    }
    
    .btn-primary {
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .card-radio-inner {
        padding: 12px 8px;
        min-height: 70px;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .auth-title-section h3 {
        font-size: 1.5rem;
    }
}