/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    background: #f8f6f3;
    color: #2d2a24;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Auth Pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f6f3 0%, #e8e4de 100%);
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.auth-card .subtitle {
    text-align: center;
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .half {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e8e4de;
    border-radius: 12px;
    font-size: 1rem;
    background: #fcfaf8;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #c9a87c;
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.15);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}

.btn-primary {
    background: #2d2a24;
    color: #fff;
}

.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.btn-block {
    width: 100%;
    padding: 0.9rem;
}

.btn-outline {
    background: transparent;
    color: #2d2a24;
    border: 1.5px solid #2d2a24;
}

.btn-outline:hover {
    background: #2d2a24;
    color: #fff;
}

/* ===== Alerts ===== */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fde8e8;
    color: #b33636;
    border: 1px solid #f5d0d0;
}

.alert-success {
    background: #e6f7e6;
    color: #2d7a2d;
    border: 1px solid #c8e6c8;
}

/* ===== Auth Link ===== */
.auth-link {
    text-align: center;
    margin-top: 1.8rem;
    color: #888;
    font-size: 0.95rem;
}

.auth-link a {
    color: #2d2a24;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}
/* ===== Logo with Image ===== */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 4px;
}

.logo-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to left, transparent, #c9a87c, transparent);
}

.logo-text .accent {
    color: #c9a87c;
    font-weight: 500;
}

/* ===== Responsive Logo ===== */
@media (max-width: 768px) {
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.15rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 26px;
    }
    
    .logo-text {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}