﻿:root {
    --primary-color: #6e6e6e; /* Cinza médio */
    --primary-dark: #4f4f4f; /* Cinza escuro */
    --primary-light: #bfbfbf; /* Cinza claro */
    --secondary-color: #8b2e3f; /* Vinho suave */
    --accent-color: #a9445a; /* Detalhes em vinho mais claro */
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --error-color: #ef233c;
    --success-color: #4cc9f0;
    --warning-color: #ffbe0b;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

#app-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    min-height: 800px;
    overflow: hidden;
    /*             padding: 30px 20px; */
    text-align: center;
}

.screen {
    position: absolute;
    width: 100%;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 40px 30px;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
    top: 0;
    left: 0;
}

    .screen.active {
        opacity: 1;
        transform: translateX(0);
    }

    .screen.left {
        transform: translateX(-100%);
    }

.logo {
    text-align: center;
    margin-bottom: 30px;
}

    .logo i {
        font-size: 3.5rem;
        color: var(--primary-color);
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 15px;
    }

h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.8rem;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: var(--text-color);
        font-weight: 500;
    }

    .input-group i {
        position: absolute;
        left: 15px;
        top: 40px;
        color: var(--text-light);
        font-size: 1.1rem;
    }

    .input-group input {
        width: 100%;
        padding: 14px 14px 14px 45px;
        border: 1px solid #e2e8f0;
        border-radius: var(--border-radius-sm);
        font-size: 0.95rem;
        transition: var(--transition);
        background-color: var(--light-gray);
    }

        .input-group input:focus {
            outline: none;
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(72, 149, 239, 0.2);
            background-color: var(--white);
        }

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

    button:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 20px rgba(67, 97, 238, 0.4);
    }

    button:active {
        transform: translateY(0);
    }

.forgot-password {
    display: block;
    text-align: right;
    margin: 10px 0 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

    .forgot-password:hover {
        color: var(--primary-color);
    }

p.link-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-light);
}

    p.link-text a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }

        p.link-text a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

.loading {
    display: none;
    margin: 16px 0;
    color: var(--primary-color);
    font-size: 14px;
    text-align: center;
}

    .loading.show {
        display: block;
    }

    .loading i {
        animation: spin 1s linear infinite;
        margin-right: 8px;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error {
    color: var(--error-color);
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
    box-shadow: var(--box-shadow);
    transform: translateX(120%);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    max-width: 90%;
    font-size: 14px;
}

    .notification.show {
        transform: translateX(0);
    }

    .notification.success {
        background-color: var(--success-color);
    }

    .notification.error {
        background-color: var(--error-color);
    }

    .notification i {
        margin-right: 8px;
        font-size: 16px;
    }

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Efeito de onda no botão */
.ripple {
    position: relative;
    overflow: hidden;
}

    .ripple:after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
        background-repeat: no-repeat;
        background-position: 50%;
        transform: scale(10, 10);
        opacity: 0;
        transition: transform .5s, opacity 1s;
    }

    .ripple:active:after {
        transform: scale(0, 0);
        opacity: 0.3;
        transition: 0s;
    }

/* Responsividade */
@media (max-width: 480px) {
    .screen {
        padding: 30px 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .input-group input {
        padding: 12px 12px 12px 40px;
    }

    button {
        padding: 12px;
    }
}
