/* Modal styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-title {
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

/* VIKTIGT: Se till att sektionerna växlar korrekt */
#loginSection,
#registerSection {
    display: block; /* Ändras via JavaScript */
}

#registerSection {
    display: none; /* Dold som standard */
}

/* Steg i registreringen */
#registerStep1,
#registerStep2,
#registerStep3 {
    display: block; /* Ändras via JavaScript */
}

#registerStep2,
#registerStep3 {
    display: none; /* Dolda som standard */
}

/* Form styling */
.form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.1);
}

.btn {
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    transform: translateY(-2px);
}

/* Animationer */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Alert styling */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem;
    margin-bottom: 0;
}

.alert i {
    margin-right: 8px;
}

/* User info */
#userInfo .badge {
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 50px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Länkar */
.btn-link {
    color: #667eea;
    text-decoration: none;
}

.btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}