/* ===== TikStone Admin Login Pages Style ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: IranSans, Tahoma, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/image/login-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(245, 235, 220, 0.25);
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ===== Card ===== */
.login-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(80, 40, 20, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ===== Logo & Title ===== */
.login-logo {
    width: 70px;
    height: auto;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 2rem;
}

/* ===== Inputs ===== */
.login-input {
    width: 100%;
    background: #F5F0EB;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: #3a3a3a;
    outline: none;
    transition: box-shadow 0.25s, background 0.25s;
    text-align: right;
    direction: rtl;
}

.login-input::placeholder {
    color: #b0a89e;
    font-size: 0.9rem;
}

.login-input:focus {
    background: #EDE6DC;
    box-shadow: 0 0 0 2px rgba(123, 51, 40, 0.2);
}

/* ===== Checkbox ===== */
.remember-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    user-select: none;
    direction: rtl;
}

.remember-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #7B3328;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== Submit Button ===== */
.btn-login {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background: #7B3328;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    letter-spacing: 0.02em;
}

.btn-login:hover {
    background: #632a20;
    transform: translateY(-1px);
}

.btn-login:active {
    background: #4e2119;
    transform: translateY(0);
}

.btn-login:disabled {
    background: #c0907a;
    cursor: not-allowed;
    transform: none;
}

/* ===== Forgot Password Link ===== */
.forgot-link {
    font-size: 0.88rem;
    color: #7B3328;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #4e2119;
    text-decoration: underline;
}

/* ===== Validation Errors ===== */
.validation-summary-errors ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.validation-summary-errors li {
    background: #fde8e8;
    color: #7B3328;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    border-right: 3px solid #7B3328;
    text-align: right;
}

/* ===== Back to Login Link ===== */
.back-link {
    font-size: 0.88rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #7B3328;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.25rem;
        border-radius: 14px;
    }

    .login-title {
        font-size: 1.1rem;
    }
}
