/* app/static/css/style.css */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
    overflow-x: visible;
    background: white;
}


/* MAIN (базовый) */
body:not(.login-page):not(.register-page) .main {
    padding: 30px;
}


/* CARD (только базовый) */
.card {
    background: white;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}
/* FORM */
.form-group { margin-bottom: 18px; }

.form-hint {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: #2a5298;
}

/* BUTTON BASE */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 42px;

    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-cancel {
    background: #9aa0a6;
    color: white;
}

.btn-cancel:hover {
    background: #7f858a;
}

/* FOOTER */
.footer {
    margin-top: 18px;
    font-size: 12px;
    text-align: center;
    color: #888;
}

/* MOBILE */
@media (max-width:420px){
    .card{
        width:90%;
        padding:30px 25px;
    }
}

.login-page .btn-primary {
    background: #2a5298;
    color: white;
}

.login-page .btn-primary:hover {
    background: #1e3c72;
}

.register-page .btn-primary {
    background: #734b6d;
    color: white;
}

.register-page .btn-primary:hover {
    background: #42275a;
}

/* глобальная кнопка "Отмена"*/
.btn-back {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    height: 42px;
    padding: 0 20px;

    border-radius: 6px;

    background: #e0e0e0;
    color: #333;

    text-decoration: none;
    border: none;
    cursor: pointer;

    transition: background 0.2s ease;
}

.btn-back:hover {
    background: #cfcfcf;
}