/* register.css */

/* Bütün elementlər üçün box-sizing */
* {
    box-sizing: border-box;
}

/* Bədən üçün əsas tərz */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: url("/static/images/history.png") no-repeat center center;
    background-size: cover;    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Login/Register qutusunu mərkəzləşdirmək */
.login-box {
    background: rgba(255, 255, 240, 0.95);
    padding: 60px 40px;  /* yuxarı-aşağı boşluq artırıldı */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    width: 400px;        /* bir az daraldıldı */
    max-width: 90%;      
    text-align: center;
    overflow: hidden;
}

/* Başlıq üçün */
.login-box h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

/* Input tərzi */
.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;  /* hündürlük azaldıldı */
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    transition: border 0.3s;
}

.login-box input:focus {
    border-color: #007bff;
    outline: none;
}

/* Button tərzi */
.login-box button {
    width: 100%;
    padding: 14px;
    background-color: #facc15;
    color: #1e3a8a;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-box button:hover {
    background-color: #fde047;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
}

/* Mesajlar */
.message {
    margin-bottom: 15px;
    font-weight: bold;
}

.message.success {
    color: #28a745;
}

.message.error {
    color: #ff4d4f;
}

/* Kiçik yazılar */
.muted {
    color: #555;
    font-size: 14px;
    margin-top: 20px;
}

.muted a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.muted a:hover {
    text-decoration: underline;
}

/* Form error mesajlarını gizlət, yalnız input error varsa göstər */
.field-error {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 4px;
}

/* Input-un parentində error varsa göstər */
input.error + .field-error {
    display: block;
}


/* Mobile üçün */
@media (max-width: 480px) {
    .login-box {
        padding: 40px 20px;
    }
    .login-box h2 {
        font-size: 22px;
    }
    .login-box input {
        padding: 9px 10px;
        font-size: 14px;
    }
    .login-box button {
        padding: 10px;
        font-size: 14px;
    }
}


.input-wrapper {
    position: relative;
    width: 100%;
}

/* input-u stabilize edirik */
.input-wrapper input {
    width: 100%;
    height: 42px;              /* 👈 FIX: sabit hündürlük */
    padding: 10px 40px 10px 12px;
    box-sizing: border-box;
}

/* icon tam mərkəz */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    user-select: none;
}
}