/* ===============================================
   PROFESSIONAL E-COMMERCE AUTH PAGES
   =============================================== */

:root {
    --primary-purple: #8B5CF6;
    --secondary-purple: #A78BFA;
    --dark-bg: #0a0e27;
    --darker-bg: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Auth Page Container */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Auth Card */
.auth-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #8B5CF6);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.auth-icon i {
    font-size: 24px;
    color: white;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.alert-error i {
    color: #EF4444;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.alert-success i {
    color: #10B981;
}

/* Form */
.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}

.form-label i {
    color: var(--primary-purple);
    font-size: 13px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-muted);
}

.form-hint i {
    margin-right: 3px;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-purple);
}

.password-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background: var(--error-color);
}

.strength-fill.medium {
    background: var(--warning-color);
}

.strength-fill.strong {
    background: var(--success-color);
}

.strength-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Field Error */
.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #FCA5A5;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    user-select: none;
}

.remember-me input {
    width: 15px;
    height: 15px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.terms-checkbox input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.terms-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.terms-text a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s;
}

.terms-text a:hover {
    color: var(--secondary-purple);
    text-decoration: underline;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    margin-bottom: 12px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-purple);
    margin-bottom: 12px;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Security Notice */
.security-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FCD34D;
    font-size: 13px;
}

.security-notice i {
    color: var(--warning-color);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    margin-top: 10px;
    transition: all 0.3s;
}

.back-home:hover {
    color: var(--primary-purple);
}

.back-home i {
    font-size: 11px;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Tablet */
@media (max-width: 768px) {
    .auth-page {
        padding: 20px 16px;
    }

    .auth-card {
        padding: 28px 24px;
        border-radius: 14px;
    }

    .auth-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }

    .auth-icon i {
        font-size: 22px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn {
        padding: 11px 18px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .auth-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .auth-icon i {
        font-size: 20px;
    }

    .auth-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .auth-subtitle {
        font-size: 12px;
    }

    .auth-header {
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-label {
        font-size: 12px;
        gap: 5px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
    }

    .form-hint {
        font-size: 10px;
    }

    .form-options {
        gap: 8px;
        margin-bottom: 16px;
    }

    .remember-me {
        font-size: 12px;
    }

    .terms-text {
        font-size: 11px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
        gap: 6px;
    }

    .alert {
        padding: 10px 14px;
        font-size: 12px;
    }

    .footer-text {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .back-home {
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .auth-card {
        padding: 20px 16px;
    }

    .auth-icon {
        width: 45px;
        height: 45px;
    }

    .auth-icon i {
        font-size: 18px;
    }

    .auth-title {
        font-size: 20px;
    }

    .auth-subtitle {
        font-size: 12px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .auth-page {
        padding: 12px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 16px;
        margin: 10px auto;
    }

    .auth-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .auth-icon i {
        font-size: 16px;
    }

    .auth-header {
        margin-bottom: 12px;
    }

    .auth-title {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .auth-subtitle {
        font-size: 11px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-input {
        padding: 8px 10px;
        font-size: 12px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .auth-footer {
        padding-top: 12px;
    }
}

