body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 900px;
}

/* Card styling */
.card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 3rem;
    background-color: #fff;
}

@media (max-width: 768px) {
    .card-body {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem;
    }
}

.card-title {
    font-weight: 700;
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-body .logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.card-body .logo:hover {
    transform: scale(1.05);
}

.text-muted {
    font-size: 0.95rem;
    color: #6c757d;
}

/* Tab navigation */
.nav-tabs {
    border: none;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 10px;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: #356FBE;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    background-color: rgba(53, 111, 190, 0.05);
}

.nav-tabs .nav-link:hover {
    background-color: rgba(53, 111, 190, 0.1);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background-color: #356FBE;
    color: #fff;
    box-shadow: 0 4px 12px rgba(53, 111, 190, 0.25);
}

/* Form styling */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #356FBE;
    box-shadow: 0 0 0 0.25rem rgba(53, 111, 190, 0.15);
    background-color: #fff;
}

.form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-select:focus {
    border-color: #356FBE;
    box-shadow: 0 0 0 0.25rem rgba(53, 111, 190, 0.15);
    background-color: #fff;
}

.form-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Button styling */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #356FBE;
    border-color: #356FBE;
    padding: 0.75rem 2rem;
    width: auto;
    min-width: 180px;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    box-shadow: 0 6px 12px rgba(53, 111, 190, 0.2);
    transform: translateY(-2px);
}

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

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

.d-grid {
    margin-top: 1.5rem;
}

/* Alert styling */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Links */
a {
    color: #356FBE;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.forgot-password {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Checkbox styling */
.form-check-input {
    border-color: #ced4da;
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.25em;
}

.form-check-input:checked {
    background-color: #356FBE;
    border-color: #356FBE;
}

.form-check-input:focus {
    border-color: #356FBE;
    box-shadow: 0 0 0 0.25rem rgba(53, 111, 190, 0.15);
}

.form-check-label {
    color: #495057;
    font-size: 0.95rem;
}

/* Divider with text */
.divider-text {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: #6c757d;
}

.divider-text:before,
.divider-text:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #e0e0e0;
}

.divider-text:before {
    left: 0;
}

.divider-text:after {
    right: 0;
}

.divider-text span {
    display: inline-block;
    padding: 0 1rem;
    background-color: #fff;
    position: relative;
    font-size: 0.9rem;
}

/* Social login buttons */
.btn-social {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.btn-social i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn-google {
    color: #ea4335;
}

.btn-facebook {
    color: #3b5998;
}

.btn-github {
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .btn {
        width: 100%;
        padding: 0.625rem 1rem;
    }
    
    .btn-primary {
        min-width: 0;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .card-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .nav-tabs {
        gap: 5px;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 379.98px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
