/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ===== Body ===== */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #00679c, #0b3c5d);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Wrapper ===== */
.auth-wrapper {
    width: 100%;
    padding: 20px;
}

/* ===== Form ===== */
.auth-form {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    padding: 36px 32px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 26px;
    color: #00679c;
    font-size: 24px;
}

/* ===== Fields ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

/* input wrapper — КЛЮЧЕВО */
.input-wrapper {
    position: relative;
}


.input-wrapper input {
    width: 100%;
    padding: 12px 46px 12px 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00679c;
    box-shadow: 0 0 0 2px rgba(0,103,156,0.15);
}

.form-error {
    display: block;
    color: #e74c3c; /* красный */
    font-size: 0.875rem;
    margin-top: 4px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ===== Eye icon ===== */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 18px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #00679c;
}

/* ===== Button ===== */
.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #00679c;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease;
}

.btn:hover {
    background: #004e78;
}

.btn:active {
    transform: scale(0.98);
}

.reset {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.reset a {
    text-decoration: none;
}

/* ===== Switch ===== */
.switch {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #444;
}

.switch a {
    color: #00679c;
    font-weight: 600;
    text-decoration: none;
}

.switch a:hover {
    text-decoration: underline;
}

/* ===== Adaptive ===== */
@media (max-width: 480px) {
    .auth-form {
        padding: 26px 22px;
    }

    .auth-form h2 {
        font-size: 20px;
    }
}


