.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    border: none;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 1rem 2rem;
    font-weight: 500;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background: none;
    position: relative;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 3px;
}

.form-control {
    border-radius: 5px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: #86b7fe;
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.btn-primary {
    padding: 0.75rem;
    font-weight: 500;
    border-radius: 5px;
    background-color: #0d6efd;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background-color: #dc3545;
    width: 25%;
}

.password-strength.medium {
    background-color: #ffc107;
    width: 50%;
}

.password-strength.strong {
    background-color: #28a745;
    width: 75%;
}

.password-strength.very-strong {
    background-color: #20c997;
    width: 100%;
}

.password-rules {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
    display: none;
    transition: all 0.3s ease;
}

.password-rules.show {
    display: block;
}

.password-rules.hide {
    display: none;
}

.password-rules ul {
    margin: 0;
    padding-left: 20px;
}

.password-rules li {
    margin: 5px 0;
    color: #6c757d;
}

.password-rules li.valid {
    color: #28a745;
}

.password-rules li.valid::before {
    content: "✓";
    margin-right: 5px;
}

.password-rules li.invalid {
    color: #dc3545;
}

.password-rules li.invalid::before {
    content: "✗";
    margin-right: 5px;
}

.password-feedback {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
}

.login-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: none !important;
}

.login-card:hover {
    transform: none !important;
}

.container.mt-5 {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .card {
        margin: 1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }
}

.input-group .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.input-group .btn-outline-secondary:hover {
    background-color: #e9ecef;
    color: #495057;
}

.input-group .btn-outline-secondary i {
    font-size: 1.1rem;
}