/* Shared styles for all auth and account forms */

.auth-container,
.password-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.auth-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.auth-section h3 {
    margin-top: 0;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.auth-container .form-group input[type="text"],
.auth-container .form-group input[type="email"],
.auth-container .form-group input[type="password"],
.password-form .form-group input[type="text"],
.password-form .form-group input[type="email"],
.password-form .form-group input[type="password"] {
    display: block;
    width: 100%;
    padding: 7px 10px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.15s ease-in-out;
}

.auth-container .form-group input:focus,
.password-form .form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

/* Override Bootstrap 2 .btn to match modern look */
.auth-container .btn,
.password-form .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    line-height: 1.4;
}

.auth-container .btn-primary,
.password-form .btn-primary {
    background-color: #007bff;
    background-image: none;
    color: white;
}

.auth-container .btn-primary:hover,
.password-form .btn-primary:hover {
    background-color: #0069d9;
    background-image: none;
    color: white;
    text-decoration: none;
}

.auth-container .btn-secondary,
.password-form .btn-secondary {
    background-color: #43a300;
    background-image: none;
    color: white;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.auth-container .btn-secondary:hover,
.password-form .btn-secondary:hover {
    background-color: #3d9400;
    background-image: none;
    color: white;
    text-decoration: none;
}

.auth-container .btn:disabled,
.password-form .btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

.form-group .error {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
}

.form-group .success {
    color: #28a745;
    font-size: 0.9em;
    margin-top: 5px;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    background: white;
    padding: 0 10px;
    color: #666;
    position: relative;
}

/* більш агресивна мобільна адаптація для логін-форм */
@media (max-width: 600px) {
    .auth-container,
    .password-form {
        max-width: 100%;
        padding: 10px;
    }

    .auth-section {
        margin-bottom: 10px;
        padding: 10px;
    }

    .auth-container .btn,
    .password-form .btn {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-bottom: 8px;
        box-sizing: border-box;
    }
}

.auth-timer {
    color: #dc3545;
    font-weight: bold;
    margin-top: 10px;
}
