/* ==========================================================
   Hancerz ID - Clean Modern White Theme
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #0891b2;
    --brand-hover: #0e7490;
    --brand-50: #ecfeff;
    --brand-100: #cffafe;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: #ffffff;
    color: #1f2937;
}

/* Custom focus ring */
.custom-input {
    transition: all 0.15s ease-in-out;
}

.custom-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
    outline: none;
}

.custom-input.input-error {
    border-color: #ef4444 !important;
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-msg {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

/* Password Strength Bar */
.strength-track {
    background-color: #f3f4f6;
    height: 4px;
    border-radius: 9999px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    transition: all 0.3s ease;
}

.strength-weak {
    background-color: #ef4444;
    width: 25%;
}

.strength-fair {
    background-color: #f59e0b;
    width: 50%;
}

.strength-good {
    background-color: #3b82f6;
    width: 75%;
}

.strength-strong {
    background-color: #10b981;
    width: 100%;
}

/* Loading Spinner */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    width: 1.1rem;
    height: 1.1rem;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

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

/* ==========================================================
   CLEAN LIGHT TOAST NOTIFICATIONS
   ========================================================== */
#toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 24rem;
    width: calc(100% - 2.5rem);
    pointer-events: none;
}

.hz-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 0.875rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    transform-origin: top right;
    animation: toastEnter 0.25s ease-out forwards;
    transition: all 0.2s ease;
}

.hz-toast.toast-leave {
    animation: toastExit 0.2s ease-in forwards;
}

.hz-toast-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
}

.hz-toast-content {
    flex-grow: 1;
}

.hz-toast-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
    color: #111827;
}

.hz-toast-msg {
    color: #4b5563;
    font-size: 0.825rem;
}

.hz-toast-close {
    flex-shrink: 0;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
}

.hz-toast-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.hz-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #f3f4f6;
}

.hz-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
}

/* Variants */
.toast-error {
    border-left: 4px solid #ef4444;
}
.toast-error .hz-toast-icon { color: #ef4444; }
.toast-error .hz-toast-progress-bar { background: #ef4444; }

.toast-success {
    border-left: 4px solid #10b981;
}
.toast-success .hz-toast-icon { color: #10b981; }
.toast-success .hz-toast-progress-bar { background: #10b981; }

.toast-warning {
    border-left: 4px solid #f59e0b;
}
.toast-warning .hz-toast-icon { color: #f59e0b; }
.toast-warning .hz-toast-progress-bar { background: #f59e0b; }

.toast-info {
    border-left: 4px solid #0891b2;
}
.toast-info .hz-toast-icon { color: #0891b2; }
.toast-info .hz-toast-progress-bar { background: #0891b2; }

@keyframes toastEnter {
    from { opacity: 0; transform: translateY(-0.75rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastExit {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-0.75rem); }
}
