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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.background-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background-bubbles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    animation: bubbleFloat 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.background-bubbles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.background-bubbles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.background-bubbles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.background-bubbles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.background-bubbles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.background-bubbles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.background-bubbles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.background-bubbles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.background-bubbles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.background-bubbles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 50%;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.container {
    width: 100%;
    max-width: 420px;
    z-index: 1;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease-out;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

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

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    margin-bottom: 15px;
    animation: bounce 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.app-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 15px;
    color: #888;
    font-weight: 500;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    z-index: 2;
    color: #999;
    transition: color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-group:focus-within .input-icon {
    color: #C4B5FD;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #efcaf7;
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFF;
    color: #555;
    font-weight: 500;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #C4B5FD;
    background: #FFF;
    box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.2);
    transform: scale(1.01);
}

input::placeholder {
    color: #BBB;
    font-weight: 400;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    color: #FFF;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(255, 154, 158, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.submit-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 154, 158, 0.5);
    filter: brightness(1.05);
}

.submit-button:active {
    transform: translateY(-1px) scale(0.98);
}

.button-arrow {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.submit-button:hover .button-arrow {
    transform: translateX(6px);
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

.toggle-text {
    font-size: 14px;
    color: #888;
    margin: 10px 0;
}

.link-text {
    color: #FF9A9E;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 6px;
}

.link-text:hover {
    color: #FF6B6B;
    background: rgba(255, 154, 158, 0.1);
}

.message {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    
    .app-title {
        font-size: 24px;
    }
    
    .logo-icon {
        font-size: 40px;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 14px 14px 14px 45px;
    }
    
    .submit-button {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .container {
        max-width: 100%;
    }
    
    .card {
        border-radius: 20px;
    }
}

.data-container {
    margin-top: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
    max-height: 300px;
    overflow-y: auto;
    animation: fadeIn 0.4s ease-out;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #495057;
    text-align: left;
    margin: 0;
}
