/* public/assets/css/auth.css */

html {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    -webkit-box-sizing: inherit;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 85px); /* Adjusted for header height */
    padding: 3rem 1rem;
    background-color: #1a103c; /* Match website background */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%236a4c93' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(36, 22, 70, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: auth-fade-in 0.5s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

@keyframes auth-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    padding: 2rem 2.5rem;
    text-align: center;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
}

.auth-logo .text-gradient {
    background: linear-gradient(to right, #c1a2e8, #e0d2f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-logo .text-pro {
    color: #c1a2e8;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #b3b3b3;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.auth-body {
    padding: 0 2.5rem 2.5rem 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #c5c5c5;
}

.input-group {
    position: relative;
}

.input-icon {
    display: none; /* Icons are removed for a cleaner look */
}

.form-control {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ffffff;
    padding: 0.9rem 1rem;
    transition: all .2s ease-in-out;
}

.form-control::placeholder {
    color: #8a8a8a;
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #a98ada;
    box-shadow: 0 0 15px rgba(169, 138, 218, 0.3);
}

.btn-primary {
    background-image: linear-gradient(195deg, #7928CA 0%, #FF0080 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(121, 40, 202, 0.3);
    padding: 1rem;
    font-size: 1.1rem;
    border: none;
    transition: all .2s ease-in-out;
}

.btn-primary:hover {
    background-image: linear-gradient(195deg, #8c42d3 0%, #ff1a8c 100%);
    box-shadow: 0 6px 20px rgba(121, 40, 202, 0.4);
}

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    text-align: center;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    color: #ffb8b8;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #b8ffb8;
}

.auth-footer {
    padding: 1.5rem 2.5rem;
    background: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.auth-footer a, .auth-footer-link {
    color: #b89ae0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-footer a:hover, .auth-footer-link:hover {
    color: #d4baf5;
}

.form-check {
    display: flex;
    align-items: center;
    color: #c5c5c5;
}

.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #a98ada;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #a98ada;
    border-color: #a98ada;
}

.form-check-input:checked::after {
    content: '✔';
    color: #1a103c;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
}


/* --- Responsive Styles --- */

/* For Tablets and smaller devices */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem 1rem;
        min-height: 100vh; /* Ensure it takes full height on mobile */
    }

    .auth-card {
        max-width: 400px;
    }

    .auth-header {
        padding: 1.5rem 2rem;
    }

    .auth-body {
        padding: 0 2rem 2rem 2rem;
    }

    .auth-footer {
        padding: 1rem 2rem;
    }
}


/* For Mobile phones */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        margin: 1rem 0;
        box-shadow: none;
        border-radius: 12px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .auth-header {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .auth-header p {
        font-size: 0.95rem;
    }

    .auth-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .auth-footer {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .form-control {
        padding: 0.8rem 1rem;
    }

    .btn-primary {
        padding: 0.9rem;
        font-size: 1rem;
    }
}
