/* main */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #1e293b;
    direction: rtl;
    margin:0;
    flex-direction:column;
    min-height:100vh;
}
main{
    flex:1;
}
/* container */
.auth-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* card */
.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top: 10px solid #003b7e;
    padding: 40px;
}

/* header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header img{
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #003b7e;
    margin-bottom: 12px;
}

.auth-header p {
    font-size: 14px;
    color: #64748b;
}

.auth-header p a {
    text-decoration: none;
    color: #003b7e;
    font-weight: 700;
    transition: color 0.3s ease;
    margin-right: 5px;
}

.auth-header p a:hover {
    color: #002855;
    text-decoration: none;
}

/* field form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

input {
    direction: ltr;
    text-align: right;
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

input::placeholder {
    color: #828993;
    letter-spacing: normal;
}

input:focus {
    border-color: #003b7e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 59, 126, 0.1);
}

/* submit */
.btn-submit {
    width: 100%;
    background: #003b7e;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 10px; */
}

.btn-submit:hover {
    background-color: #002855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 59, 126, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 
out backend style
*/

#out {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    border-radius: 12px;
    padding: 12px 15px;
    white-space: pre-wrap; 
    word-wrap: break-word;
    line-height: 1.6;
    margin-top: 5px;
    line-height: 1.6;
    transition: all 0.4s ease-in-out;
    transform: translateY(-15px);
}

#out:empty {
    display: none;
}

#out.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-weight: bold;
}

#out.success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    .auth-header h1 {
        font-size: 22px;
    }
}
