.place-holder
{
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 0;
}

/* Auth Container */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    perspective: 1000px;

    mix-blend-mode: normal !important;
}

/* Flip Card */
.flip-card {
    --w: 50vw;
    --h: calc(var(--w) / 7 * 5);

    width: var(--w);
    height: var(--h);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(.45,0,.45,1.15);
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

.auth-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.signup-side {
    transform: rotateY(180deg);
}

/* Typography */
.auth-title {
    font-size: 2.5em;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.auth-description {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 2.5em;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: rgba(74, 144, 226, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
}

.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper input:focus + label,
.input-wrapper input:valid + label {
    transform: translateY(-2.5em) scale(0.85);
    opacity: 1;
    color: #4A90E2;
}

.input-wrapper label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left;
}

.input-wrapper input::placeholder {
    color: transparent;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4757, #ffa502, #2ed573);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    min-width: 7.5%;
    text-align: right;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: #4A90E2;
    border-color: #4A90E2;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Button Styles */
.auth-btn {
    position: relative;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: spin 1s linear infinite;
}

.auth-btn.loading .btn-text {
    opacity: 0;
}

.auth-btn.loading .btn-loader {
    opacity: 1;
}
.terms-link
{
    color: #ff4757;
}
.terms-link.ml
{
    margin-left: 0.25em;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 20px;
}

.auth-switch p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

.switch-btn {
    background: none;
    border: none;
    color: #4A90E2;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.switch-btn:hover {
    color: #357ABD;
}

/* Responsive */
@media (max-width: 480px) {
    .flip-card {
        width: 90vw;
        max-width: 380px;
        height: auto;
        min-height: 600px;
    }

    .auth-side {
        padding: 30px 25px;
    }

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

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}
