/* assets/css/auth.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');

:root {
    --auth-primary: #2563eb;
    --auth-primary-hover: #1d4ed8;
    --auth-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --auth-bg: #f8fafc;
    --auth-card-bg: #ffffff;
    --auth-text-main: #1e293b;
    --auth-text-muted: #64748b;
    --auth-input-bg: #f8fafc;
    --auth-border: #e2e8f0;
    --auth-radius-sm: 8px;
    --auth-radius-md: 12px;
    --auth-radius-lg: 16px;
    --auth-radius-xl: 24px;
    --auth-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

body.auth-page {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--auth-bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-text-main);
}

/* Container Layout */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile-first Layout */
.auth-hero {
    background: var(--auth-gradient);
    color: white;
    padding: 3rem 1.5rem 5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: white;
    color: var(--auth-primary);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--auth-radius-lg);
    box-shadow: var(--auth-shadow);
}

.auth-hero-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-hero-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.auth-card {
    background: var(--auth-card-bg);
    border-radius: var(--auth-radius-xl) var(--auth-radius-xl) 0 0;
    padding: 2rem 1.5rem;
    flex-grow: 1;
    margin-top: -30px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.auth-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.auth-header h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-header p {
    color: var(--auth-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Segmented Tabs */
.auth-tabs {
    display: flex;
    background: var(--auth-input-bg);
    border-radius: var(--auth-radius-md);
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tab.active {
    background: var(--auth-card-bg);
    color: var(--auth-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Inputs */
.auth-form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: 1.1rem;
    z-index: 2;
}

.auth-form-control {
    width: 100%;
    height: 54px;
    padding: 0.5rem 1rem 0.5rem 3rem;
    border-radius: var(--auth-radius-md);
    border: 1px solid var(--auth-border);
    background-color: var(--auth-card-bg);
    font-size: 0.95rem;
    color: var(--auth-text-main);
    transition: all 0.2s ease;
}

.auth-form-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.auth-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 0;
}

.auth-password-toggle:focus {
    outline: none;
}

/* Button */
.auth-btn {
    width: 100%;
    height: 54px;
    background: var(--auth-gradient);
    color: white;
    border: none;
    border-radius: var(--auth-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.auth-btn:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-footer-link {
    text-align: right;
    margin-bottom: 1.5rem;
}

.auth-footer-link a {
    color: var(--auth-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

/* Security Card */
.auth-security-card {
    background: #f1f5f9;
    border-radius: var(--auth-radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.auth-security-icon {
    font-size: 1.5rem;
    color: var(--auth-primary);
}

.auth-security-text h6 {
    margin: 0 0 0.2rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-text-main);
}

.auth-security-text p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--auth-text-muted);
}

.auth-bottom-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-text-muted);
    margin-top: 1rem;
}

.auth-bottom-text a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-bottom-text a:hover {
    text-decoration: underline;
}

.auth-back-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 10;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .auth-wrapper {
        flex-direction: row;
        max-width: 1000px;
        min-height: 600px;
        height: auto;
        background: var(--auth-card-bg);
        border-radius: var(--auth-radius-xl);
        box-shadow: var(--auth-shadow);
        overflow: hidden;
        margin: 2rem auto;
    }

    .auth-hero {
        flex: 1;
        padding: 3rem;
        margin: 0;
        border-radius: 0;
    }

    .auth-card {
        flex: 1.2;
        padding: 3rem;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .auth-back-btn {
        color: var(--auth-text-main);
        left: 2rem;
        top: 2rem;
    }
}
