* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Segoe UI", sans-serif;
}

:root {
    --primary-color: #0ba54b;
    --background-color: #f8f9fa;
    --gradient-color: linear-gradient(90deg, #07a047 0%, #067748 100%);
    --shadow-light: rgba(2, 43, 3, 0.404);
    --shadow-dark: rgba(54, 54, 54, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.034);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    background: #020024;
    background: linear-gradient(
        90deg,
        rgb(6 14 14) 0%,
        rgb(12 33 21) 35%,
        rgb(23 25 18) 100%
    );

    background-size: cover;
    background-position: center;
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.3rem;
    overflow-x: hidden;
    overflow-y: auto;
    margin: auto;
}

.main-container {
    background-image: url(/assets/auth-bg2.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 40px;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 95%;
    z-index: 3;
    padding: 0.5rem;
    height: 85vh;
    margin: auto;
    overflow: hidden;
}
.register-section {
    height: 92vh;
}
/* Primeiro Card (Texto) */
.company-info {
    background: rgba(255, 255, 255, 0.521);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px 15px 0 15px;
    box-shadow: 8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 55%;
    color: #141414;
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #111;
}

.company-info p {
    font-size: 1.2rem;
    color: #0a0909;
    line-height: 1.6;
}

.company-info img {
    width: 150px;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px 15px 15px 0;
    box-shadow: 8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    padding: 2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 30%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.register-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px 15px 15px 0;
    box-shadow: 8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    padding: 2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 30%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.success-message {
    color: #28a745;
    padding: 10px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    text-align: center;
}

.fail-message {
    color: #dc3545;
    padding: 10px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    text-align: center;
}

.mobile-title {
    display: none;
}
.login-container img {
    width: 150px;
    margin: 0 auto;
    position: relative;
    bottom: 10px;
}

.login-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 5px;
    color: white;
    position: relative;
    bottom: 30px;
}
.login-container h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
    position: relative;
    bottom: 30px;
}

.form-container {
    position: relative;
    bottom: 20px !important;
}
.form-container p {
    color: white;
    text-align: center;
    margin-bottom: 10px;
}
.form-container label,
.register-form-container label {
    position: relative;
    bottom: 5px;
    left: 5px;
    color: white;
    font-weight: 200;
}

/* Input padrão */
.login-container input,
.register-container input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px 10px 10px 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-container input:-webkit-autofill,
.register-container input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset;
    -webkit-text-fill-color: white;
    border-radius: 15px 10px 10px 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 5000s ease-in-out 0s;
}

.login-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-container input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.login-container button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: var(--gradient-color);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.register-container button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: var(--gradient-color);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-container button:hover,
.register-container button:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.3);
}

.link {
    display: flex;
    justify-content: space-between;

    margin-top: 1rem;
}

.link a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
}

.link a:hover {
    text-decoration: underline;
}

/* Wrapper para inputs com ícone */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
    margin-bottom: 1rem;
    padding-left: 2.8rem;
}

.input-wrapper.no-icon {
    padding-left: 1rem;
}

.input-wrapper i {
    position: absolute;
    left: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: white;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-wrapper input:focus {
    outline: none;
    background: transparent;
}

/* Responsividade */
@media (max-width: 1200px) {
    .company-info {
        width: 50%;
    }
    .login-container,
    .register-container {
        width: 40%;
    }
}
@media (max-width: 896px) {
    .company-info {
        display: none;
    }
    .login-container,
    .register-container {
        width: 70%;
        height: auto;
    }
    .mobile-title {
        display: block;
        color: white;
        position: relative;
        bottom: 10px;
    }
}
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }
    .main-container {
        flex-direction: column;
        height: 100%;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    .login-container,
    .register-container {
        width: 100%;
        height: auto;
    }
}
@media (max-width: 368px) {
    .link a {
        font-size: 0.75rem;
    }
}
