*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red-dark: #791F1F;
    --red-main: #A32D2D;
    --red-mid: #C0392B;
    --red-light: #F7C1C1;
    --red-pale: #FCEBEB;
    --white: #ffffff;
    --gray-100: #F5F4F2;
    --gray-200: #E8E6E3;
    --gray-400: #9A9692;
    --gray-700: #4A4745;
    --gray-900: #1C1A18;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--gray-100);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: drift 12s ease-in-out infinite alternate;
}

.blob-1 {
    width: 480px;
    height: 480px;
    background: var(--red-main);
    top: -120px;
    left: -120px;
    animation-duration: 14s;
}

.blob-2 {
    width: 360px;
    height: 360px;
    background: var(--red-dark);
    bottom: -80px;
    right: -80px;
    animation-duration: 10s;
    animation-delay: -4s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #E24B4A;
    top: 40%;
    left: 60%;
    opacity: 0.10;
    animation-duration: 18s;
    animation-delay: -7s;
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(30px, 20px) scale(1.06);
    }
}


.card-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1rem;
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(162, 45, 45, 0.12);
    padding: 2.75rem 2.25rem 2.25rem;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red-dark), var(--red-mid), var(--red-light));
    border-radius: 24px 24px 0 0;
}

.logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-box {
    width: 68px;
    height: 68px;
    background: var(--red-main);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(162, 45, 45, 0.30);
}

.logo-box svg {
    display: block;
}

.badge {
    display: inline-block;
    background: var(--red-pale);
    color: var(--red-main);
    font-family: 'Sora', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 6px;
}

.card-title {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.card-sub {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 3px;
}

.field {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 13px;
    color: var(--gray-400);
    display: flex;
    pointer-events: none;
}

.input-icon-right {
    position: absolute;
    right: 12px;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.input-icon-right:hover {
    color: var(--red-main);
    background: var(--red-pale);
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 11px 42px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--gray-900);
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

input::placeholder {
    color: var(--gray-400);
}

input:focus {
    border-color: var(--red-main);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(162, 45, 45, 0.10);
}

.checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
    user-select: none;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 5px;
    background: var(--gray-100);
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background: var(--red-main);
    border-color: var(--red-main);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: var(--red-main);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(162, 45, 45, 0.30);
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.btn-login:hover {
    background: var(--red-dark);
    box-shadow: 0 6px 20px rgba(162, 45, 45, 0.38);
}

.btn-login:active {
    transform: scale(0.98);
}

.card-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 12px;
    color: var(--gray-400);
}

.card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CAF50;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(76, 175, 80, 0.0);
    }
}
