/* ========== AUTH MODALS STYLES ========== */

/* Green Color Theme */
.text-green {
    color: #008020 !important;
}

.bg-gradient-green {
    background: linear-gradient(135deg, #008020 0%, #006a1a 100%);
}

.btn-green {
    background: linear-gradient(135deg, #008020 0%, #006a1a 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-green:hover {
    background: linear-gradient(135deg, #00661a 0%, #005015 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 32, 0.3);
    color: #fff;
}

.btn-green:focus,
.btn-green:active {
    box-shadow: 0 0 0 3px rgba(0, 128, 32, 0.2);
    color: #fff;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1rem 2rem;
}

/* Auth Icon */
.auth-icon {
    animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Controls */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #008020;
    box-shadow: 0 0 0 3px rgba(0, 128, 32, 0.1);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

/* Custom Checkbox */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #008020;
    border-color: #008020;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 32, 0.25);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #dee2e6;
}

.divider-text {
    position: relative;
    display: inline-block;
    background-color: #fff;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Social Buttons */
.btn-outline-secondary {
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-2px);
}

/* Alert Styles */
.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Font Weight */
.font-weight-600 {
    font-weight: 600;
}

/* Links */
a.text-green:hover {
    color: #00661a !important;
    text-decoration: underline;
}

/* Close Button */
.modal-header .close {
    opacity: 1;
    text-shadow: none;
    font-size: 2rem;
    font-weight: 300;
}

.modal-header .close:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 767px) {
    .modal-body {
        padding: 1.5rem 1rem;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem;
    }

    .auth-icon i {
        font-size: 3rem !important;
    }

    .row .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Animation on modal show */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Form Labels */
label {
    margin-bottom: 0.5rem;
}

label i {
    width: 20px;
}

/* Input Focus Glow */
.form-control:focus {
    animation: inputGlow 0.3s ease;
}

@keyframes inputGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 128, 32, 0.4);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(0, 128, 32, 0.1);
    }
}