@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

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


html, body {
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 24px;
}

/* CSS pro animaci ruky */
.hand-wave {
    animation: waveAnimation 1.4s ease-in-out;
    transform-origin: bottom center; /* Punkt rotace bude ve spodní části obrázku */
}

@keyframes waveAnimation {
    0% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.2) rotate(-15deg);
    }

    50% {
        transform: scale(1.2) rotate(15deg);
    }

    75% {
        transform: scale(1.2) rotate(-10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.container-xl {
    max-width: 70%;
    padding: 0;
}

.split-container {
    display: flex;
    gap: 60px;
}

.info-section {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-section {
    flex: 1;
    padding: 40px;
    border-left: 1px solid #eee;
    align-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 18px;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: #EBF3FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #007bff;
    font-size: 20px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 35px;
}

/* Tlačítka */
.auth-button {
    width: 100%;
    height: 56px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 16px;
    color: black;
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

.auth-button i {
    margin-right: 12px;
    font-size: 20px;
    color: black;
}

/* Google tlačítko */
.google-button img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Skrytí původního Google přihlášení */
.g_id_signin {
    display: none !important;
}

#emailButton.active::after {
    transform: translateY(-50%) rotate(90deg);
}

#emailButton.active {
    background: #f8f9fa;
    border-color: #0862ff;
}

/* Smooth formulář pro email - NOVÉ STYLY */
.auth-form {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(-10px);
    margin-top: 0;
}

.auth-form.active {
    max-height: 600px; /* Dostatečně vysoká hodnota pro formulář */
    opacity: 1;
    transform: translateY(0);
    margin-top: 20px;
}

/* Animace pro jednotlivé form elementy */
.auth-form .form-group {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: 0s;
}

.auth-form.active .form-group {
    opacity: 1;
    transform: translateY(0);
}

/* Postupné zobrazení jednotlivých polí */
.auth-form.active .form-group:nth-child(2) { transition-delay: 0.1s; } /* První input */
.auth-form.active .form-group:nth-child(3) { transition-delay: 0.2s; } /* Druhý input */
.auth-form.active .form-group:nth-child(4) { transition-delay: 0.3s; } /* Třetí input */
.auth-form.active .create-account-btn { transition-delay: 0.4s; } /* Tlačítko */

/* Formulářové prvky */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    height: 56px;
    padding: 20px 16px 8px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: white;
}

.form-control::placeholder {
    color: transparent;
}

.form-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
    transition: all 0.2s ease;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: 8px;
    transform: translateY(0);
    font-size: 12px;
    color: #5271ff;
}

.form-control:focus {
    outline: none;
    border-color: #5271ff;
    box-shadow: 0 0 0 3px rgba(82,113,255,0.1);
}

.create-account-btn {
    background: #0862ff !important;
    color: white !important;
    border: none !important;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.auth-form.active .create-account-btn {
    opacity: 1;
    transform: translateY(0);
}

.create-account-btn:hover {
    background: #0652d3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 98, 255, 0.3);
}

.terms {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 30px;
}

.terms a {
    color: #0862ff;
    text-decoration: none;
}

/* Simple Toast Notification Styles */
.simple-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 350px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.simple-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.simple-toast.success {
    border-left: 4px solid #4caf50;
}

.simple-toast.error {
    border-left: 4px solid #f44336;
}

.simple-toast.warning {
    border-left: 4px solid #ff9800;
}

.simple-toast.info {
    border-left: 4px solid #2196f3;
}

.toast-message {
    margin-right: 10px;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.requirements-list {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #6c757d;
    gap: 20px;
}

.req {
    padding: 2px 0;
    transition: color 0.3s ease;
}

.req.valid {
    color: #28a745;
}


.req.invalid {
    color: #dc3545;
}


.feedback-message {
    font-size: 0.8rem;
    margin-top: 3px;
    transition: all 0.3s ease;
}

.feedback-message.error {
    color: #dc3545;
}

.feedback-message.success {
    color: #28a745;
}

.highlight-button {
    animation: pulse 1s 2;
    box-shadow: 0 0 0 5px rgba(66, 133, 244, 0.3) !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

/* Responzivní styly */
@media (max-width: 768px) {
    .main-container {
        margin: 0;
        padding: 20px;
        box-shadow: none;
        border-radius: 0;
    }

    .split-container {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .auth-section {
        border-left: none;
        padding: 20px 0;
    }

    .info-section {
        padding: 20px 0;
    }

    .auth-title {
        font-size: 2rem;
    }

    .auth-form.active {
        max-height: 700px; /* Více místa na mobilech */
    }
}

/* Přidej tyto styly do tvého signup.css */

/* Kontejner pro buttony s animací */
.auth-buttons-container {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    overflow: hidden;
}

.auth-buttons-container.hidden {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    margin-bottom: 0;
}

/* Šipka zpět */
.back-arrow {
    display: none;
    align-items: center;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 8px 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.back-arrow.show {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.back-arrow:hover {
    color: #0862ff;
}

.back-arrow i {
    margin-right: 8px;
    font-size: 16px;
}

/* Upravené styly pro formulář */
.auth-form {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(-10px);
    margin-top: 0;
}

.auth-form.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px; /* Menší margin protože zmizely buttony */
}

/* Responzivní úprava */
@media (max-width: 768px) {
    .auth-form.active {
        max-height: 600px;
    }

    .auth-buttons-container.hidden {
        max-height: 0;
        margin-bottom: 0;
    }
}