﻿.is-valid {
    border: 2px solid #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.is-invalid {
    border: 2px solid #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.required-asterisk {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.auth-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-box {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.input-group {
    transition: all 0.3s ease;
}

    .input-group:focus-within {
        transform: translateY(-2px);
    }

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        transform: translateY(-1px);
    }

.input-group-text {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 12px 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    }

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    }

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 1px solid #b8daff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-body {
    padding: 2rem;
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.password-requirements {
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 5px;
    border-left: 3px solid #007bff;
}

/* Enhanced Back Button Styles */
.back-button {

    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

    .back-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
        color: white;
    }

    .back-button i {
        font-size: 16px;
    }

h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, transparent);
    margin-bottom: 2rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .col-lg-8 {
        padding: 1rem;
    }

    .login-form {
        padding: 0;
    }

    .back-button {
        margin-top: 20px;
        left: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }

        .back-button i {
            font-size: 14px;
        }

    .card-body {
        padding: 1.5rem;
    }

    .form-control {
        padding: 16px 18px;
        font-size: 13px;
        min-height: 50px;
        border-radius: 12px;
        width:100%;
    }

    .input-group-text {
        padding: 16px 18px;
        min-height: 50px;
        border-radius: 12px 0 0 12px;
    }

        .input-group-text i {
            font-size: 18px;
        }

    .form-label {
        font-size: 15px;
        font-weight: 600;
    }
}
}

@media (max-width: 576px) {
    .back-button {
        margin-top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 25px;
    }

        .back-button i {
            font-size: 12px;
        }

        .back-button .btn-text {
            display: none;
        }

    .auth-box {
        margin: 10px;
        border-radius: 15px;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .back-button {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
        display: inline-flex;
    }

        .back-button .btn-text {
            display: inline;
        }
}

