﻿.hidden-element {
    display: none;
}

.visible-element {
    display: block;
    width: 100%;
    padding-bottom: 100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.field {
    margin-bottom: 10px;
    width: 35%;
}

/** {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}*/

/*body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0e7ff, #c3dafe);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}*/

.box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);*/
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-style: solid;
    border-color: hsl(0, 0%, 73%);
}

    .box:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    }

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2a44;
    margin-bottom: 1.5rem;
}

.field {
    width: 90%;
    padding: 0.875rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2a44;
    background: #f8fafc;
    transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .field:focus {
        outline: none;
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        transform: scale(1.02);
    }

.button-style {
    width: 80%;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #3498db !important;
    /*background: #3498db;*/
    background: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
    border: 1px solid #3498db
}

    .button-style:hover {
        /*background: linear-gradient(90deg, #4f46e5, #8b5cf6);*/
        background: #3498db;
        transform: translateY(-2px);
        animation: pulse 1s infinite;
        color: white !important;
    }

    .button-style:active {
        transform: translateY(0);
    }

.section {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* Loading Spinner */
.loading {
    display: none;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .box {
        padding: 1.5rem;
        max-width: 90%;
    }

    h2 {
        font-size: 1.25rem;
    }

    .field, .button-style {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 400px) {
    .box {
        padding: 1.25rem;
    }

    h2 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .field, .button-style {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
}


.transition-box {
    opacity: 1;
    transform: translateY(0) scale(1); /* Move up and full size */
    visibility: visible;
    transition: opacity 0.55s cubic-bezier(0.5, 1.2, 0.5, 0.9), transform 0.55s cubic-bezier(0.5, 1.2, 0.5, 0.9), visibility 0s linear; /* No delay for visibility */
}
