/* public/css/auth-pro.css */

body {
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 2rem 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.auth-logo svg {
    width: 36px;
    height: 36px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #212529;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 0.375rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-button {
    flex: 1;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Card */
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.auth-intro {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: #adb5bd;
    pointer-events: none;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
}

.input-action {
    position: absolute;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.input-action:hover {
    background: #f8f9fa;
    color: #495057;
}

.input-action svg {
    width: 20px;
    height: 20px;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: #6c757d;
}

.form-hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert */
.alert-error {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 12px;
    margin-top: 1rem;
    color: #c53030;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}

.footer-info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-info a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-wrapper {
        padding: 1.5rem 1.25rem;
    }
    
    .auth-card {
        padding: 1.5rem 1.25rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}