/* Custom Auth Styles - Color Theme: #203E44 */

/* Card styling */
.card-primary {
    border: none;
    box-shadow: 0 8px 25px rgba(32, 62, 68, 0.15);
}

.card-primary .card-header {
    /* background: linear-gradient(135deg, #203e44 0%, #2a4d54 100%); */
    border-bottom: none;
    padding: 25px 30px;
    border-radius: 0.375rem 0.375rem 0 0;
}

.card-primary .card-header .login {
    color: #000000;
    font-weight: 600;
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
}

.card-body {
    padding: 40px 30px;
    background: #ffffff;
}

/* Form styling */
.form-group label {
    color: #203e44;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #203e44;
    box-shadow: 0 0 0 0.2rem rgba(32, 62, 68, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Button styling */
.btn-primary {
    background: linear-gradient(135deg, #203e44 0%, #2a4d54 100%);
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a3439 0%, #243f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 62, 68, 0.3);
}

.btn-primary:active,
.btn-primary:focus {
    background: linear-gradient(135deg, #1a3439 0%, #243f46 100%);
    box-shadow: 0 4px 15px rgba(32, 62, 68, 0.4);
}

/* Alert styling */
.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* Invalid feedback */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Auth layout background */
.auth-background {
    background: linear-gradient(135deg, #203e44 0%, #2a4d54 50%, #34575f 100%);
    min-height: 100vh;
    position: relative;
}

.auth-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.04)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Card container */
.auth-card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .card-body {
        padding: 30px 20px;
    }

    .card-primary .card-header {
        padding: 20px;
    }

    .card-primary .card-header h4 {
        font-size: 1.25rem;
    }
}

/* Loading state for button */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Input focus effects */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Custom checkbox if needed */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #203e44;
    border-color: #203e44;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(32, 62, 68, 0.25);
}

/* Button icon spacing */
.btn i {
    margin-right: 8px;
}

/* Form focus states */
.form-group.focused .form-control {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 62, 68, 0.15);
}

/* Card hover effect */
.card-primary {
    transition: all 0.3s ease;
}

.card-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(32, 62, 68, 0.2);
}

/* Auth header and footer styling */
.auth-header,
.auth-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.auth-header h4 {
    color: #ffffff;
    font-weight: 300;
    margin-bottom: 10px;
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.auth-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}
