﻿/* === ОБЩИЙ КОНТЕЙНЕР === */
.identity-page {
    max-width: 460px;
    margin: 50px auto;
    padding: 0 20px;
}

.identity-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

    .identity-card h1, .identity-card h2, .identity-card h3, .identity-card h4 {
        text-align: center;
        color: #1f1f1f;
        margin-bottom: 20px;
        font-weight: 600;
    }

/* === ФОРМЫ (Вход / Регистрация / Смена пароля) === */
.identity-form .form-group {
    margin-bottom: 18px;
}

.identity-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 0.95em;
}

.identity-form input.form-control,
.identity-form select.form-control,
.identity-form textarea.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.2s ease;
    background: #fafafa;
    box-sizing: border-box;
}

    .identity-form input.form-control:focus,
    .identity-form select.form-control:focus,
    .identity-form textarea.form-control:focus {
        outline: none;
        border-color: #00bfff;
        box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15);
        background: #fff;
    }

.identity-form .btn-primary {
    width: 100%;
    padding: 12px;
    background: #00bfff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 10px;
}

    .identity-form .btn-primary:hover {
        background: #0095cc;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 191, 255, 0.25);
    }

    .identity-form .btn-primary:active {
        transform: translateY(0);
    }

.identity-form .btn-secondary,
.identity-form .btn-outline-secondary {
    width: 100%;
    padding: 10px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

    .identity-form .btn-secondary:hover {
        background: #e9ecef;
        border-color: #ccc;
    }

/* Ошибки валидации */
.identity-form .text-danger,
.identity-form .validation-summary-errors {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 6px;
    font-weight: 500;
}

    .identity-form .validation-summary-errors ul {
        margin: 0;
        padding-left: 20px;
    }

/* Ссылки под формой */
.identity-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
}

    .identity-links a {
        color: #00bfff;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .identity-links a:hover {
            color: #0095cc;
            text-decoration: underline;
        }

/* === СТРАНИЦА ПРОФИЛЯ (Manage) === */
.manage-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.manage-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

    .manage-card h3 {
        margin-top: 0;
        color: #1f1f1f;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

.manage-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

    .manage-nav a {
        padding: 8px 16px;
        background: #f8f9fa;
        border-radius: 6px;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: all 0.2s;
    }

        .manage-nav a:hover,
        .manage-nav a.active {
            background: #00bfff;
            color: #fff;
        }

/* Адаптивность */
@media (max-width: 576px) {
    .identity-card, .manage-card {
        padding: 20px;
    }

    .identity-page, .manage-container {
        margin: 20px auto;
    }

    .manage-nav {
        flex-direction: column;
    }
}
