/* ========================================
   B2B Panel - Base Styles
   ======================================== */

:root {
    --pink: #ff1e62;
    --pink-dark: #e0004b;
    --pink-light: #fff0f5;
    --border: #e5e7eb;
    --shadow-soft: 0 6px 28px rgba(15, 23, 42, 0.08);
    --shadow-medium: 0 10px 40px rgba(15, 23, 42, 0.12);
    --text-dark: #0f172a;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ========================================
   Login Page Styles
   ======================================== */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 30, 98, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(255, 30, 98, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    padding: 48px 40px;
    z-index: 1;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top accent line */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink) 0%, #ff6b9d 100%);
    border-radius: 24px 24px 0 0;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.logo-primary {
    color: var(--text-dark);
}

.logo-secondary {
    color: var(--pink);
}

.login-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--pink);
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
    color: var(--text-dark);
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: var(--pink);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 30, 98, 0.1);
}

.form-input:hover:not(:focus) {
    border-color: #cbd5e1;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease;
    border-radius: 8px;
}

.password-toggle:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Form Options - Remember & Forgot */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.remember-checkbox {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    background: var(--white);
}

.checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    position: absolute;
    top: 2px;
}

.remember-checkbox:checked + .checkmark {
    background: var(--pink);
    border-color: var(--pink);
}

.remember-checkbox:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.remember-label:hover .checkmark {
    border-color: var(--pink);
}

.remember-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.forgot-link {
    font-size: 14px;
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--pink-dark);
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: var(--white);
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 30, 98, 0.35);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 480px) {
    .login-wrapper {
        padding: 16px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .login-container {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-subtitle {
        font-size: 12px;
    }

    .form-input {
        padding: 14px 14px 14px 46px;
        font-size: 14px;
    }

    .input-icon svg {
        width: 18px;
        height: 18px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .forgot-link {
        align-self: flex-end;
    }

    .login-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

