* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #e5e7eb;
    color: #323232;
    font-family: Arial, sans-serif;
}

.wrapper {
    width: min(1200px, calc(100% - 30px));
    margin: 30px auto;
}

.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.panel,
.download-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
}

.download-panel {
    align-self: flex-start;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.panel-header h1,
.download-panel h1 {
    margin: 0;
    font-size: 41px;
}

.panel-header p,
.download-panel p {
    margin-top: 8px;
    color: #94a3b8;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card h2 {
    margin-top: 0;
}

.card a,
.card a:visited {
    color: #2563EB;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    border: 1px solid #d7dde8;
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
    margin-bottom: 14px;
    font-size: 15px;
}

button,
.download-btn,
.logout-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px;
    background: #2563eb;
    color: white;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

button:hover,
.download-btn:hover,
.logout-btn:hover {
    background: #1d4ed8;
}

.logout-btn {
    width: auto;
    padding: 12px 18px;
    background: #dc2626;
}

.logout-btn:hover {
    background: #b91c1c;
}

.preview {
    width: 160px;
    height: 160px;
    object-fit: contain;
    image-rendering: pixelated;
    border-radius: 14px;
    background: #f1f5f9;
    margin-bottom: 14px;
}

.message {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.message.success {
    background: rgba(34, 197, 94, 0.2);
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
}

.download-btn {
    margin-top: 20px;
    background: #16a34a;
}

.download-btn:hover {
    background: #15803d;
}


.auth-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-switcher {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.switch-btn {
    width: auto;
    background: #e2e8f0;
    color: #0f172a;
    padding: 12px 18px;
    border-radius: 12px;
}

.switch-btn.active {
    background: #2563eb;
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-footer {
    margin-top: 14px;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}
@media (max-width: 1225px) {
    .panel-header h1,
    .download-panel h1 {
        font-size: 36px;
    }
}
@media (max-width: 900px) {

    .layout {
        grid-template-columns: 1fr;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

}