﻿/*
    INDEX,   PASSWORD RECOVERY
*/

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.login-box {
    background-color: white;
    padding: 60px 30px;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0,0,0,0.07);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-icon {
    background-color: #008dd2;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-icon i {
        color: white;
        font-size: 46px;
    }

.form-control {
    border-radius: 6px;
}

.btn-primary {
    background-color: #008dd2;
    border: none;
}

.links {
    margin-top: 20px;
    font-size: 14px;
}

    .links a {
        display: block;
        color: #000;
        text-decoration: none;
        margin-top: 4px;
    }

        .links a:hover {
            text-decoration: underline;
        }


/*
    REGISTER
*/

/* Секции формы */
.registration-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    padding: 25px;
    border: 1px solid #eaeaea;
}

.section-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

    .section-header h2 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
        display: flex;
        align-items: center;
    }

        .section-header h2 i {
            margin-right: 10px;
            color: #6c757d;
        }

/* Сетка формы */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

/* Элементы формы */
.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #495057;
    }

.form-control {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

/* Переключатель компании */
.company-toggle {
    margin-bottom: 25px;
}

.custom-switch {
    padding-left: 2.25rem;
}

.custom-control-label {
    cursor: pointer;
}

/* Поле пароля */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

.password-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Ошибки */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

    .error-message i {
        margin-right: 5px;
    }

/* Кнопки */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
}

    .btn-primary:hover {
        background-color: #0069d9;
        border-color: #0062cc;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .btn-primary i {
        margin-right: 8px;
    }

.login-link {
    margin-top: 15px;
    color: #6c757d;
}

    .login-link a {
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
    }

        .login-link a:hover {
            text-decoration: underline;
        }
