* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #101827;
    color: #f8fafc;
}

.container {
    max-width: 480px;
    margin: 30px auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

h1 {
    margin: 5px 0 0;
    font-size: 27px;
}

.subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    color: #94a3b8;
}

.status {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 20px;
    background: #334155;
}

.card {
    background: #1e293b;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 16px;
    text-align: center;
}

.label {
    color: #94a3b8;
    font-size: 14px;
}

.current-temp {
    font-size: 68px;
    font-weight: bold;
    margin: 18px 0;
}

.humidity {
    color: #cbd5e1;
}

.target-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
}

.target-control button {
    width: 55px;
    height: 55px;
    border: 0;
    border-radius: 50%;
    background: #334155;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.target-temp {
    font-size: 42px;
    font-weight: bold;
}

.hint {
    font-size: 13px;
    color: #94a3b8;
}

.mode-buttons {
    display: flex;
    gap: 10px;
    margin: 22px 0;
}

.mode-buttons button {
    flex: 1;
    padding: 15px;
    border: 0;
    border-radius: 10px;
    background: #334155;
    color: white;
    cursor: pointer;
}

.mode-buttons button.active {
    background: #2563eb;
}

.heating-status {
    color: #cbd5e1;
    font-size: 14px;
}

.message {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 15px;
}

@media (max-width: 400px) {
    .current-temp {
        font-size: 55px;
    }

    .target-temp {
        font-size: 34px;
    }
}

form input {
    display: block;
    width: 100%;
    padding: 14px;
    margin: 10px 0 20px;
    border: 1px solid #475569;
    border-radius: 10px;
    background: #0f172a;
    color: white;
    font-size: 16px;
}

.login-button {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    cursor: pointer;
}