* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #036e9c 0%, #0596c9 45%, #0bb6d6 100%);
    color: #2c3e50;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 70%);
    animation: float 10s ease-in-out infinite;
}

.b1 {
    width: 90px;
    height: 90px;
    left: 8%;
    top: 15%;
    animation-duration: 9s;
}

.b2 {
    width: 50px;
    height: 50px;
    left: 20%;
    top: 70%;
    animation-duration: 7s;
    animation-delay: 1s;
}

.b3 {
    width: 130px;
    height: 130px;
    left: 82%;
    top: 12%;
    animation-duration: 12s;
    animation-delay: 0.5s;
}

.b4 {
    width: 40px;
    height: 40px;
    left: 88%;
    top: 65%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.b5 {
    width: 70px;
    height: 70px;
    left: 50%;
    top: 88%;
    animation-duration: 8s;
    animation-delay: 1.5s;
}

.b6 {
    width: 24px;
    height: 24px;
    left: 65%;
    top: 30%;
    animation-duration: 5.5s;
    animation-delay: 0.8s;
}

.b7 {
    width: 60px;
    height: 60px;
    left: 5%;
    top: 55%;
    animation-duration: 9.5s;
    animation-delay: 2.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-22px) translateX(10px);
    }
}

.card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(2, 40, 60, 0.4);
    padding: 46px 38px 38px;
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.logo-badge {
    width: 88px;
    height: 88px;
    margin: -80px auto 20px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(2, 40, 60, 0.4);
    border: 4px solid #fff;
    background: #036e9c;
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

h1 {
    font-size: 1.6rem;
    margin: 0 0 10px;
    color: #024e6e;
    text-align: center;
    font-weight: 700;
}

.subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #6c7a89;
    text-align: center;
    margin: 0 0 28px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #445;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #9aa8b4;
    pointer-events: none;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px 14px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #0596c9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(5, 150, 201, 0.12);
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

button[type="submit"] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #036e9c, #0596c9);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 6px 16px rgba(3, 110, 156, 0.35);
}

button[type="submit"] i {
    font-size: 16px;
}

button[type="submit"]:hover {
    box-shadow: 0 8px 20px rgba(3, 110, 156, 0.45);
}

button[type="submit"]:active {
    transform: translateY(1px);
}

.btn-reset {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    background: #f1f5f9;
    color: #445;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-reset i {
    font-size: 15px;
}

.btn-reset:hover {
    background: #e6edf3;
    border-color: #cbd5e1;
}

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

.alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.87rem;
    line-height: 1.4;
}

.alert-error {
    background: #fdecec;
    color: #9c3232;
    border: 1px solid #f6c9c9;
}

.token-result {
    margin-top: 22px;
    padding: 22px 20px;
    background: linear-gradient(135deg, #eaf7fb, #e2f2f8);
    border: 1px dashed #9fd3e6;
    border-radius: 14px;
    text-align: center;
}

.token-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 0.78rem;
    color: #036e9c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.token-label i {
    font-size: 13px;
}

.token-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(2, 40, 60, 0.08);
    max-width: 100%;
}

.token-value {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1c2b36;
    word-break: break-all;
}

.copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: #eaf5fa;
    color: #036e9c;
    cursor: pointer;
    transition: background 0.15s;
}

.copy-btn i {
    font-size: 14px;
}

.copy-btn:hover {
    background: #d5eef7;
}

.copy-feedback {
    position: absolute;
    top: -30px;
    right: 0;
    background: #1c2b36;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.token-details {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.88rem;
    color: #6c7a89;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .card {
        padding: 36px 22px 26px;
    }
}
