﻿/* auth.css */
:root {
    --auth-bg: #141417;
    --auth-input-bg: transparent;
    --auth-input-text: #ffffff;
    --auth-text: #ffffff;
    --auth-muted: #8e8e93;
}

body {
    margin: 0;
    font-family: 'Onest', sans-serif;
    background-color: var(--auth-bg);
    color: var(--auth-text);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.auth-left {
    flex: 1;
    background-image: url('../assets/images/auth_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(17,17,20,0) 0%, rgba(17,17,20,0.4) 50%, rgba(17,17,20,1) 100%);
}

.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
    background: #141417;
    overflow-y: auto;
}

.auth-top {
    position: absolute;
    top: 40px;
    left: 10%;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.auth-brand {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.auth-brand span {
    color: #ff4d4d;
}

.auth-back {
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: inline-block;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.auth-subtitle {
    color: var(--auth-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
    max-width: 400px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: #e0e0e0;
}

.form-group input {
    background: transparent;
    border: 1px solid #333;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--auth-text);
    outline: none;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #ff4d4d;
}

.form-group input::placeholder {
    color: #999;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.btn-auth {
    background: #1c1c1f;
    color: #fff;
    border: 1px solid #333;
    padding: 14px 30px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Onest', sans-serif;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    background: #2a2a2d;
}

.auth-options {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--auth-muted);
}

.auth-options a {
    color: var(--auth-muted);
    text-decoration: none;
    margin-left: auto;
}

/* Custom Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #a0a0a0;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff4d4d;
}

input:checked + .slider:before {
    transform: translateX(16px);
    background-color: #fff;
}

.auth-footer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #fff;
}

.auth-footer a {
    color: var(--auth-muted);
    text-decoration: none;
}

@media (max-width: 768px) {
    .auth-left {
        display: none;
    }
    .auth-right {
        padding: 40px 20px;
    }
}


/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
}
.toast.show {
    transform: translateX(0);
}
.toast-error {
    border-left: 4px solid #ff4d4d;
}
.toast-error svg {
    color: #ff4d4d;
    flex-shrink: 0;
}
.toast-success {
    border-left: 4px solid #4caf50;
}
.toast-success svg {
    color: #4caf50;
    flex-shrink: 0;
}