* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #1e3a3f;
}

.page-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

.content {
    position: relative;
    z-index: 2;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.sign-form {
    background: rgba(43, 43, 43, 0.25);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px;
    border: 0.5px solid rgba(98, 98, 98, 0.25);
}

.content h1 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: 'Arial', sans-serif;
    font-weight: 300;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tabs {
    width: 100%;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.513);
    border-radius: 40px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
}

.tab {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.2s ease;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-size: 36px;
    font-weight: 500;
    white-space: nowrap;
}

.tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-title {
    color: white;
    font-weight: 600;
    margin-bottom: 32px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-size: 60px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 24px;
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    color: white;
    font-size: 30px;
    width: 100%;
    transition: all 0.2s ease;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-field:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.email-input {
    position: relative;
}

.email-input input {
    padding: 28px 28px 28px 80px
}

.icon {
    position: absolute;
    left: 16px;
    top: 55%;
    padding: 20px;
    transform: translateY(-50%) scale(3.5);
    color: rgba(255, 255, 255, 0.4);
}

.password-input {
    position: relative;
}

.password-input input {
    padding: 28px 28px 28px 80px
}

.phone-input {
    position: relative;
    display: flex;
    align-items: center;
}

.country-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 0 8px;
    padding: 16px 12px;
    color: white;
    font-size: 16px;
    border-right: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.phone-number {
    flex: 1;
    border-radius: 0 8px 8px 0;
    padding: 16px;
    font-size: 16px;
}

.flag {
    width: 20px;
    height: 15px;
    background: linear-gradient(to bottom, #b22234 0%, #b22234 33%, #ffffff 33%, #ffffff 66%, #b22234 66%);
    position: relative;
    border-radius: 2px;
}

.flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53%;
    background: #3c3b6e;
}

.create-btn {
    width: 100%;
    background: white;
    color: #333;
    border: none;
    border-radius: 20px;
    padding: 28px;
    font-size: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
}

.create-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.create-btn:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.divider span {
    background: rgba(50, 50, 55, 0.85);
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-btn:active {
    transform: scale(0.98);
}

.google-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
    border-radius: 50%;
}

.apple-icon {
    color: white;
    font-size: 20px;
}

.terms {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 40px;
    line-height: 1.5;
}

.terms a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.form-container {
    background: rgba(50, 50, 55, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px 20px;
    width: 100%;
    max-width: calc(100vw - 2rem);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    margin-bottom: 100px;
}

.logo-container {
    transform: scale(0.8);
    opacity: 0.7;
    pointer-events: none;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.error-icon {
    position: absolute;
    right: 50px;
    top: 55%;
    transform: translateY(-50%) scale(3.5);
    color: rgba(255, 0, 0, 0.5);
}

.error-field {
    margin-top: 8px;
    color: rgba(255, 0, 0, 0.7);
    font-weight: 400;
    text-align: left;
    font-size: 24px;
}

.error-outline {
    border-color: rgba(255, 0, 0, 0.5);
    background: rgba(255, 0, 0, 0.05);
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.tab:active {
    transform: scale(0.98);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    font-size: 40px;
}

.content {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

.form-container {
    -webkit-overflow-scrolling: touch;
}

.form-container {
    min-height: 0;
}

.form-container {
    max-height: 100vh;
    max-height: 100dvh;
}

/* estilos desktop */
@media screen and (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    .content {
        padding: 2rem;
        align-items: center;
        justify-content: center;
    }

    .content h1 {
        font-size: 3rem;
    }

    .form-container {
        max-width: 400px;
        padding: 32px;
        margin-bottom: 0;
    }

    .tabs {
        width: 100%;
        border-radius: 20px;
        padding: 2.5px;
    }

    .tab {
        padding: 8px 14.5px;
        font-size: 14px;
        border-radius: 20px;
    }

    .error-icon {
        right: 16px;
        top: 50%;
        transform: translateY(-50%) scale(1.4);
    }

    .form-title {
        font-size: 24px;
    }

    .input-row {
        flex-direction: row;
        gap: 12px;
    }

    .input-field {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 8px;
    }

    .email-input input {
        padding: 14px 16px 14px 44px;
    }

    .password-input input {
        padding: 14px 16px 14px 44px;
    }

    .icon {
        padding: 0;
        transform: translateY(-50%) scale(1.4);
    }

    .create-btn {
        padding: 14px;
        font-size: 16px;
        border-radius: 8px;
    }

    .terms {
        font-size: 12px;
    }

    .logo-container {
        position: absolute;
        transform: scale(0.3);
        transform-origin: top left;
        top: 0;
        left: 0;
        padding: 100px;
        opacity: 0.7;
    }

    .background {
        width: 110%;
        height: 110%;
        position: absolute;
        top: -5%;
        left: -5%;
        background: url("https://clubedaimunidade.ucbvet.com/images/boi-actimune.png") no-repeat center center;
        background-size: cover;
        transition: transform 0.1s ease-out;
        will-change: transform;
    }

    .background video {
        display: none;
    }

    .error-field {
        font-size: 14px;
    }

    /* zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 14px;
    }
}