/* Base styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* Login container styles */
.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Form styles */
.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 0.35rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
}

/* OTP input styles */
.otp-inputs {
    margin-bottom: 1.5rem;
}

.otp-inputs .form-control {
    text-align: center;
    font-size: 1.5rem;
    height: 60px;
    width: 50px;
    padding: 0.5rem;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

/* Logo styles */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .otp-inputs .form-control {
        height: 50px;
        width: 40px;
        font-size: 1.25rem;
    }
}

/* Loading spinner */
.spinner-border {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Form group spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Alert styles */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.35rem;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #224abe;
    text-decoration: underline;
}

/* Input group styles */
.input-group-text {
    background-color: #f8f9fc;
    border: 1px solid #d1d3e2;
    border-left: none;
    cursor: pointer;
}

.input-group .form-control:not(:first-child) {
    border-top-right-radius: 0.35rem;
    border-bottom-right-radius: 0.35rem;
    border-left: none;
}

.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

/* Form text helper */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}
