* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.subtitle {
    color: #5a9367;
    font-size: 1.1rem;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px dashed #5a9367;
    border-radius: 10px;
    background-color: #f9fdfa;
}

.upload-btn {
    background-color: #5a9367;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.upload-btn:hover {
    background-color: #4a7a55;
    transform: translateY(-2px);
}

.upload-btn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    transform: none;
}

#file-input {
    display: none;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.results-section {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-title {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.top-predictions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.prediction-card {
    background: #f0f7f2;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.prediction-card:hover {
    transform: translateY(-5px);
}

.prediction-card.top {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
}

.prediction-label {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c5530;
}

.prediction-confidence {
    font-size: 1.8rem;
    font-weight: 700;
    color: #388e3c;
}

.all-predictions {
    margin-top: 20px;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.prediction-item:hover {
    background: #f0f0f0;
}

.prediction-name {
    font-weight: 500;
}

.prediction-percent {
    font-weight: 600;
    color: #5a9367;
}

.loader {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5a9367;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    display: none;
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid #f44336;
}

footer {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .top-predictions {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 20px;
    }
}

css/* Стили для форм регистрации и входа */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 0;  /* Убрали padding */
    background: transparent;  /* Убрали фон */
    border: none;  /* Убрали рамку */
}

.auth-form p {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #2c5530;
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d0e4d5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.auth-form input:focus {
    outline: none;
    border-color: #5a9367;
    box-shadow: 0 0 0 3px rgba(90, 147, 103, 0.1);
}

.auth-form input:hover {
    border-color: #5a9367;
}

.auth-form .errorlist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.auth-form .errorlist li {
    color: #c62828;
    font-size: 0.9rem;
    background: #ffebee;
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: 5px;
    border-left: 3px solid #f44336;
}

.auth-form .helptext {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.auth-form .upload-btn {
    width: 100%;
    margin-top: 10px;
}

.auth-form ul {
    list-style: none;
    padding: 0;
}