/* Стили для страниц аутентификации */
.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    box-sizing: border-box;
}

.auth-wrapper {
    position: relative;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.auth-header {
    padding: 40px 40px 20px;
    text-align: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.auth-header .logo a {
    color: #667eea;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.auth-header h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.auth-header p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.auth-form {
    padding: 30px 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    padding: 20px 40px 40px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.auth-links {
    text-align: center;
    margin-bottom: 20px;
}

.link-secondary {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: #667eea;
}

.link-secondary i {
    margin-right: 6px;
}

.auth-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.auth-info h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.test-accounts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-account {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    border-left: 3px solid #667eea;
}

.test-account strong {
    color: #2c3e50;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    margin: 0 40px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-header,
    .auth-form,
    .auth-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .auth-header h1 {
        font-size: 20px;
    }
    
    .alert {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Dashboard стили */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.dashboard-subtitle {
    color: #6c757d;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.stat-number {
    color: #667eea;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.stat-change {
    font-size: 12px;
    margin-top: 5px;
}

.stat-change.positive {
    color: #27ae60;
}

.stat-change.negative {
    color: #e74c3c;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #2c3e50;
    font-size: 20px;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.users-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #e3f2fd;
    color: #1976d2;
}

.role-badge.dealer {
    background: #f3e5f5;
    color: #7b1fa2;
}

.role-badge.guest {
    background: #e8f5e8;
    color: #388e3c;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
} 

footer {
    border-top: 1px solid #d8d8d8;
}

footer .text-muted {
    text-align: center;
    display: block;
    color: #8c8c8c;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(5 , 1fr);
    padding: 2rem 0;
}

.footer-inner h4 {
    margin-bottom: 1rem;
}

.footer-inner .footer-group > div {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.footer-height-line {
    display: flex;
    justify-content: center;
}

.footer-height-line .height-line {
    height: 100%;
    width: 1px;
    background-color: #d8d8d8;
}

.footer-inner .footer-group > div:hover a {
    text-decoration: underline;
}

.footer-contacts > div {
    display: flex;
    gap: 0.55rem;
}

.footer-under {
    display: flex;
    gap: 4rem;
    font-size: 0.7rem;
    padding: 0 0 1rem 0;
    margin: 0 4rem;
    opacity: 0.5;
}

.skidka {
    background-color: #F3F3F3;
    padding: 4rem 4rem;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem;
}

.skidka .skidka-img {
    background-image: url('/public/images/skidka.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 15px;
}

.skidka > div  {
    padding: 4rem 5rem;
    display: grid;
    gap: 2rem;
    justify-items: center
}

.skidka div form {
    display: grid;
    gap: 0.5rem;
}

.skidka div form input {
    height: 2.5rem;
    padding: 0.2rem 1rem;
    background-color: var(--dark-gray);
    border-radius: 8px;
    border: 1px #d8d8d8 solid;
    background-color: #fff;
}

.skidka div h2 {
    text-transform: uppercase;
}