body {
    background-color: #f5f6fa;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.login-container .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #152046;
    margin-bottom: 1.5rem;
}

.btn-login {
    background-color: #152046;
    color: white;
    border: none;
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #1f2d5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 32, 70, 0.3);
}

.form-control,
.form-select {
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #152046;
    box-shadow: 0 0 0 0.2rem rgba(21, 32, 70, 0.25);
}

.form-label {
    font-weight: 500;
    color: #152046;
    margin-bottom: 0.5rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #888;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider:not(:empty)::before {
    margin-right: .75em;
}

.divider:not(:empty)::after {
    margin-left: .75em;
}

.btn-social {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #152046;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-facebook {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
}

.btn-facebook:hover {
    background-color: #f8f9fa;
    border-color: #152046;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-apple {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
}

.btn-apple:hover {
    background-color: #f8f9fa;
    border-color: #152046;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-email {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
}

.btn-email:hover {
    background-color: #f8f9fa;
    border-color: #152046;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.small {
    color: #152046;
    text-decoration: none;
    transition: color 0.3s ease;
}

.small:hover {
    color: #1f2d5c;
    text-decoration: underline;
}

/* Custom file input styling */
.form-control[type="file"] {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    padding: 0.375rem 0.75rem;
    margin-right: 0.75rem;
    background-color: #152046;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-control[type="file"]::file-selector-button:hover {
    background-color: #1f2d5c;
}

/* Mobile Responsive Styles */
@media (max-width: 576px) {
    body {
        padding: 0.5rem;
    }

    .login-container {
        padding: 1.5rem;
        border-radius: 12px;
        margin: 0;
    }

    .login-container .logo {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .form-control,
    .form-select {
        padding: 0.65rem;
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .btn-login,
    .btn-social {
        padding: 0.65rem;
        font-size: 0.9rem;
    }

    .btn-social i {
        font-size: 1.1rem;
    }

    .divider {
        margin: 1.25rem 0;
        font-size: 0.85rem;
    }

    .small {
        font-size: 0.85rem;
    }

    .mb-3 {
        margin-bottom: 0.875rem !important;
    }

    .form-control[type="file"]::file-selector-button {
        padding: 0.25rem 0.5rem;
        margin-right: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .login-container {
        padding: 1.25rem;
    }

    .login-container .logo {
        font-size: 1.35rem;
    }

    .btn-social {
        margin-bottom: 0.65rem;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .login-container {
        padding: 1rem;
    }

    .login-container .logo {
        font-size: 1.25rem;
    }

    .form-control,
    .form-select {
        font-size: 0.85rem;
    }

    .btn-social {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Tablet Styles */
@media (min-width: 577px) and (max-width: 768px) {
    .login-container {
        max-width: 480px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 0.5rem;
        align-items: flex-start;
    }

    .login-container {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .login-container .logo {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .divider {
        margin: 1rem 0;
    }
}

/* Focus states for better accessibility */
.btn-login:focus,
.btn-social:focus {
    outline: 2px solid #152046;
    outline-offset: 2px;
}

/* Smooth animations */
* {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    -webkit-touch-callout: none;
    user-select: none;
}

/* Invalid feedback styling for mobile */
@media (max-width: 576px) {
    .invalid-feedback {
        font-size: 0.825rem;
    }
}

/* Loading state for forms */
.btn-login:disabled,
.btn-social:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toast positioning for mobile */
.toast-container {
    z-index: 1100;
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
}

@media (min-width: 576px) {
    .toast-container {
        left: auto;
        min-width: 300px;
    }
}
