/* ===============================================
   Authentication Pages - Minimal & Modern Design
   =============================================== */

/* Auth Container */
.auth-container {
    background-color: #fafafa;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* Auth Card */
.auth-card {
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Auth Header */
.auth-header {
    margin-bottom: 1.5rem;
}

.auth-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fac402;
    border-radius: 50%;
}

.auth-icon i {
    font-size: 28px;
    color: #252525;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #252525;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 13px;
    color: #707070;
    margin: 0;
}

/* Auth Body */
.auth-body {
    padding: 0;
}

.auth-form {
    width: 100%;
}

/* Auth Form Group */
.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #252525;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-label i {
    color: #fac402;
    font-size: 14px;
}

/* Auth Inputs */
.auth-form .sweet-input {
    width: 100%;
    font-size: 14px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.auth-form .sweet-input:focus {
    border-color: #fac402;
    box-shadow: 0 0 0 3px rgba(250, 196, 2, 0.1);
    outline: none;
}

.auth-form .sweet-input::placeholder {
    color: #aaa;
    font-size: 13px;
}

.auth-form .sweet-input.is-invalid {
    border-color: #dc3545;
}

.auth-form .sweet-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Auth Error Messages */
.auth-error {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

.auth-error i {
    font-size: 13px;
}

/* Auth Checkbox */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-checkbox .form-check-input {
    width: 18px;
    height: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-checkbox .form-check-input:checked {
    background-color: #fac402;
    border-color: #fac402;
}

.auth-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(250, 196, 2, 0.15);
}

.auth-checkbox .form-check-label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin: 0;
}

/* Auth Button */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 0, 34, 0.25);
}

.auth-btn i {
    font-size: 15px;
}

/* Auth Links */
.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 13px;
    color: #707070;
    text-decoration: none;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
}

.auth-link:hover {
    color: #fac402;
    text-decoration: none;
}

.auth-link i {
    font-size: 13px;
}

.auth-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    font-weight: 600;
    color: #fac402;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border: 1px solid #fac402;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.auth-link-secondary:hover {
    background-color: #fac402;
    color: #252525;
    text-decoration: none;
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.25rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    background-color: #fff;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Auth Text */
.auth-text {
    font-size: 13px;
    color: #707070;
    margin: 0;
}

/* Success & Info Messages */
.auth-card .alert {
    font-size: 13px;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: none;
}

.auth-card .alert-success {
    background-color: #d4edda;
    color: #155724;
}

.auth-card .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.auth-card .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.auth-card .alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Choose User Type Styles */
.auth-choice-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.auth-choice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #252525;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-choice-btn:hover {
    border-color: #fac402;
    background-color: #fac402;
    color: #252525;
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(250, 196, 2, 0.25);
    text-decoration: none;
}

.auth-choice-btn i {
    font-size: 20px;
}

/* Verify Email Styles */
.auth-verify-content {
    text-align: center;
    padding: 1rem 0;
}

.auth-verify-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(250, 196, 2, 0.1);
    border-radius: 50%;
}

.auth-verify-icon i {
    font-size: 40px;
    color: #fac402;
}

.auth-verify-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.25rem;
}

.auth-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.75rem;
    background-color: #fac402;
    color: #252525;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(250, 196, 2, 0.3);
    color: #252525;
    text-decoration: none;
}

/* Password Reset Styles */
.auth-reset-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fac402;
    border-radius: 50%;
}

.auth-reset-icon i {
    font-size: 32px;
    color: #252525;
}

/* Select/Dropdown Styles */
.auth-form select.sweet-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
}

/* Form Hint Text */
.auth-form-hint {
    font-size: 11px;
    color: #999;
    margin-top: 0.4rem;
    display: block;
}

/* Back Link */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    color: #707070;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.auth-back-link:hover {
    color: #fac402;
    text-decoration: none;
    transform: translateX(4px);
}

.auth-back-link i {
    font-size: 14px;
}


/* ===============================================
   Responsive Design
   =============================================== */

@media (max-width: 991px) {
    .auth-card {
        padding: 1.75rem !important;
    }

    .auth-title {
        font-size: 20px;
    }

    .auth-icon {
        width: 55px;
        height: 55px;
    }

    .auth-icon i {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem 0;
    }

    .auth-card {
        padding: 1.5rem !important;
        border-radius: 6px;
    }

    .auth-title {
        font-size: 19px;
    }

    .auth-subtitle {
        font-size: 12px;
    }

    .auth-icon {
        width: 50px;
        height: 50px;
    }

    .auth-icon i {
        font-size: 24px;
    }

    .auth-form .sweet-input {
        padding: 0.7rem 0.9rem;
        font-size: 13px;
    }

    .auth-btn {
        padding: 0.7rem 1.25rem;
        font-size: 13px;
    }

    .auth-choice-btn {
        padding: 0.9rem 1.25rem;
        font-size: 14px;
    }

    .auth-choice-btn i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.25rem !important;
    }

    .auth-title {
        font-size: 18px;
    }

    .auth-verify-icon {
        width: 70px;
        height: 70px;
    }

    .auth-verify-icon i {
        font-size: 35px;
    }

    .auth-reset-icon {
        width: 60px;
        height: 60px;
    }

    .auth-reset-icon i {
        font-size: 28px;
    }
}


/* ===============================================
   RTL Support
   =============================================== */

[dir="rtl"] .auth-form select.sweet-input {
    background-position: left 0.75rem center;
    padding-left: 2.5rem;
    padding-right: 1rem;
}


/* ===============================================
   Focus & Interactive States
   =============================================== */

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}


/* ===============================================
   Livewire & Loading States
   =============================================== */

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-icon {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Wire Loading */
[wire\:loading] {
    opacity: 0.6;
}

.auth-btn [wire\:loading] {
    margin-right: 0.4rem;
}

.auth-link [wire\:loading] {
    margin-right: 0.25rem;
}

.auth-form [wire\:loading\.attr\="disabled"] {
    pointer-events: none;
    cursor: not-allowed;
}


/* ===============================================
   Multi-step Form
   =============================================== */

.auth-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

.auth-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
}

.auth-step.active {
    background-color: #fac402;
    color: #252525;
}

.auth-step.completed {
    background-color: #28a745;
    color: #fff;
}

.auth-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.75rem;
    width: 0.75rem;
    height: 1px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
}

.auth-step:last-child::after {
    display: none;
}


/* ===============================================
   File Upload
   =============================================== */

.auth-file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.auth-file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.auth-file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    background-color: #fac402;
    color: #252525;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-file-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(250, 196, 2, 0.3);
}

.auth-upload-progress {
    width: 100%;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.auth-upload-progress-bar {
    height: 100%;
    background-color: #fac402;
    transition: width 0.3s ease;
}


/* ===============================================
   Alert Messages
   =============================================== */

.auth-form .alert {
    font-size: 13px;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: none;
}

.auth-form .alert-success {
    background-color: #d4edda;
    color: #155724;
}

.auth-form .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.auth-form .alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.auth-form .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}
