/* ========================================
   Aramon Authentication Forms Styles
   ======================================== */

/* Authentication Container */
.qlk-aramon-auth-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

/* Brand Section */
.qlk-aramon-auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.qlk-aramon-auth-brand .qlk-aramon-auth-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 16px;
}

.qlk-aramon-auth-brand .qlk-aramon-auth-logos .qlk-aramon-auth-logo {
    max-width: 150px !important;
    height: auto !important;
}

.qlk-aramon-auth-brand .qlk-aramon-auth-logos .qlk-aramon-auth-connector {
    font-size: 18px;
    color: #6c757d;
    font-weight: 300;
}

.qlk-aramon-auth-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    padding: 0 15px;
}

/* Form Styles */
.qlk-aramon-auth-form {
    background: #fff;
}

.qlk-aramon-auth-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.qlk-aramon-form-group {
    margin-bottom: 18px;
}

.qlk-aramon-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.qlk-aramon-form-label-required::after {
    content: " *";
    color: #dc3545;
}

.qlk-aramon-form-input {
    width: 100%;
    padding: 14px 24px !important;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.qlk-aramon-form-input:focus {
    outline: none;
    border-color: #00a5d3;
    box-shadow: 0 0 0 0.2rem rgba(0, 165, 211, 0.25);
}

.qlk-aramon-form-input::placeholder {
    color: #adb5bd;
}

/* Password Input with Toggle */
.qlk-aramon-password-wrapper {
    position: relative;
}

.qlk-aramon-password-wrapper .qlk-aramon-form-input {
    padding-right: 50px;
}

.qlk-aramon-password-toggle {
    position: absolute;
    right: 25px;
    top: 25px;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    color: #999;
    font-size: 16px !important;
    line-height: 1;
    transition: color 0.15s ease;
    display: inline-block;
    width: auto;
    height: auto;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    z-index: 2;
    pointer-events: auto;
}

.qlk-aramon-password-toggle:hover {
    color: #666;
}

.qlk-aramon-password-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
    color: #333;
}

.qlk-aramon-password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Password Strength Indicator */
.qlk-aramon-password-strength {
    margin-top: 8px;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.qlk-aramon-password-strength.active {
    display: block;
}

.qlk-aramon-password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.qlk-aramon-password-strength-bar.weak {
    width: 33%;
    background-color: #dc3545;
}

.qlk-aramon-password-strength-bar.medium {
    width: 66%;
    background-color: #ffc107;
}

.qlk-aramon-password-strength-bar.strong {
    width: 100%;
    background-color: #28a745;
}

.qlk-aramon-password-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
    line-height: 1.4;
}

/* Error Messages */
.qlk-aramon-form-error {
    border-color: #dc3545 !important;
}

.qlk-aramon-error-message {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

.qlk-aramon-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.qlk-aramon-alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.qlk-aramon-alert-success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.qlk-aramon-alert-info {
    background-color: #cff4fc;
    border: 1px solid #b6effb;
    color: #055160;
}

.qlk-aramon-alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

/* Buttons */
.qlk-aramon-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.qlk-aramon-btn-primary:hover:not(:disabled) {
    box-shadow: 0 2px 6px rgba(92, 184, 92, 0.3);
}

.qlk-aramon-btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.qlk-aramon-btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
}

.qlk-aramon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qlk-aramon-btn-loading {
    position: relative;
    color: transparent !important;
}

.qlk-aramon-btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: qlk-aramon-spin 0.6s linear infinite;
}

@keyframes qlk-aramon-spin {
    to { transform: rotate(360deg); }
}

/* Form Links */
.qlk-aramon-form-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.qlk-aramon-form-link {
    font-size: 14px;
    text-align: center;
    color: #00a5d3;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.qlk-aramon-form-link:hover {
    color: #008db8;
    text-decoration: underline;
}

.qlk-aramon-form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.qlk-aramon-form-divider::before,
.qlk-aramon-form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.qlk-aramon-form-divider span {
    padding: 0 12px;
    color: #6c757d;
    font-size: 14px;
}

/* Two Column Layout for Register */
.qlk-aramon-form-row {
    display: flex;
    gap: 12px;
}

.qlk-aramon-form-row .qlk-aramon-form-group {
    flex: 1;
}

/* Birth Date Input */
.qlk-aramon-form-input[type="date"] {
    padding-right: 16px;
}

/* Adjust padding for date inputs */
.qlk-aramon-form-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
    margin-right: -4px;
}

/* Responsive */
@media (max-width: 576px) {
    .qlk-aramon-auth-container {
        padding: 15px;
    }
    
    .qlk-aramon-auth-brand .qlk-aramon-auth-logos {
        flex-direction: column;
        gap: 8px;
    }
    
    .qlk-aramon-auth-brand .qlk-aramon-auth-logos .qlk-aramon-auth-connector {
        transform: rotate(90deg);
        font-size: 16px;
    }
    
    .qlk-aramon-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .qlk-aramon-auth-brand .qlk-aramon-auth-logos .qlk-aramon-auth-logo {
        max-width: 60px !important;
        width: 60px !important;
    }

    .qlk-aramon-auth-description {
        font-size: 12px;
    }
    
    .qlk-aramon-form-input {
        padding: 12px 16px;
    }
    
    .qlk-aramon-password-wrapper .qlk-aramon-form-input {
        padding-right: 45px;
    }
    
    .qlk-aramon-password-toggle {
        right: 16px;
        font-size: 15px;
    }
}

/* Hidden by default */
.qlk-aramon-form-view {
    display: none;
}

.qlk-aramon-form-view.active {
    display: block;
}

/* Success Message with Icon */
.qlk-aramon-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #d1e7dd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #0f5132;
}