* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #f7f5f3;
    color: #111;
}

.header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header__inner {
    max-width: 1180px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #e76f51;
}

.header__user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.small-btn {
    width: auto;
    padding: 10px 16px;
}

.main {
    min-height: calc(100vh - 148px);
    display: grid;
    place-items: center;
    gap: 24px;
    padding: 48px 20px;
}

.upload-box,
.auth-card {
    width: 100%;
    max-width: 660px;
    background: #fff;
    padding: 44px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.08);
}

.upload-box h1 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.15;
}

.upload-box p,
.auth-card p {
    margin: 0 0 28px;
    font-size: 17px;
    color: #666;
}

.upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    border: 2px dashed #d9d1cd;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 22px;
    transition: 0.2s;
}

.upload-area:hover {
    border-color: #e76f51;
    background: rgba(231,111,81,0.05);
}

.upload-area input {
    display: none;
}

.upload-area span {
    font-size: 20px;
    font-weight: 700;
}

.controls {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.controls select,
.controls input,
.auth-form input {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
}

button,
.upgrade-btn {
    width: 100%;
    padding: 17px 22px;
    border: none;
    border-radius: 10px;
    background: #e76f51;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

button:hover,
.upgrade-btn:hover {
    background: #d85f43;
    transform: translateY(-1px);
}

.result {
    margin-top: 24px;
    font-size: 16px;
}

.auth-card {
    padding: 30px;
}

.auth-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.auth-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 12px;
}

.auth-form button {
    width: auto;
    white-space: nowrap;
}

#upgradeBox {
    margin-top: 26px;
    padding: 24px;
    background: #fff7f4;
    border: 1px solid rgba(231,111,81,0.2);
    border-radius: 10px;
}

#upgradeBox p {
    margin: 0 0 16px;
    font-weight: 700;
    color: #111;
}

#upgradeMonthly,
#upgradeYearly {
    margin-top: 10px;
}

#upgradeYearly {
    background: #111;
}

#upgradeYearly:hover {
    background: #222;
}

.footer {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.footer p a {
        text-decoration: none;
        font-weight: 500;
        color: #e76f51;
        cursor: pointer;
}

#format {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 44px;

    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.auth-message {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
}

.auth-message.success {
    color: #2f8f46;
}

.auth-message.error {
    color: #c0392b;
}

@media (max-width: 760px) {
    .upload-box,
    .auth-card {
        padding: 28px;
    }

    .controls,
    .auth-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .upload-box h1 {
        font-size: 30px;
    }

    .header__inner {
        height: auto;
        padding: 18px;
        gap: 12px;
        flex-direction: column;
    }

    .header__user {
        display: grid;
    }

    .header__user span {
        text-align: center;
    }
}