:root {
    --green-900: #134e3a;
    --green-700: #1f7a59;
    --green-100: #eaf5ef;
    --orange-500: #f28c28;
    --orange-600: #df7c1f;
    --text-900: #1d2a22;
    --text-700: #55635c;
    --line: #dbe7df;
    --white: #ffffff;
    --danger-bg: #fff1f1;
    --danger-text: #b42318;
    --warn-bg: #fff7ed;
    --warn-text: #9a3412;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-900);
    background:
        radial-gradient(circle at top right, rgba(242, 140, 40, 0.16), transparent 22%),
        radial-gradient(circle at bottom left, rgba(31, 122, 89, 0.12), transparent 25%),
        #f5f8f6;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 560px;
    background: var(--white);
    border: 1px solid rgba(19, 78, 58, 0.08);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(19, 78, 58, 0.08);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.brand-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--green-700), var(--orange-500));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-900);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.15;
    color: var(--green-900);
}

.subtitle {
    margin: 0 0 28px;
    color: var(--text-700);
    font-size: 16px;
    line-height: 1.6;
}

.form {
    display: grid;
    gap: 14px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-900);
}

input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 4px rgba(31, 122, 89, 0.12);
}

.logo {
  width: 100%;
  height: auto;
  max-width: 120px;
 
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--green-700);
    color: var(--white);
}

.btn-primary:hover {
    background: #176346;
}

.btn-secondary {
    background: var(--orange-500);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--orange-600);
}

.alert {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.alert.error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(180, 35, 24, 0.12);
}

.alert.warning {
    background: var(--warn-bg);
    color: var(--warn-text);
    border: 1px solid rgba(154, 52, 18, 0.12);
    margin-bottom: 16px;
}

.link-preview {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px dashed #d8d8d8;
    font-size: 14px;
    word-break: break-all;
}

.back-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--green-700);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .card {
        padding: 24px;
        border-radius: 18px;
    }

    h1 {
        font-size: 26px;
    }
}
