/* Authentication Pages Styles */

.required {
    color: #e74c3c;
}

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

.account-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.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-radio {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 0px;
    height: 100%;
}

.card-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.card-radio-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 120px;
}

.card-radio:hover .card-radio-inner {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
}

.card-radio input[type="radio"]:checked + .card-radio-inner {
    border-color: #667eea;
    border-width: 3px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.25);
    transform: translateY(-5px);
    position: relative;
}

.card-radio input[type="radio"]:checked + .card-radio-inner::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-top: 10px;
}

/* 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;
    }
}