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

body {
    background-color: #354152;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.grid {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.site__logo {
    margin-bottom: 2rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    animation: fadeInDown 0.6s ease-out;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site__logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input {
    border: 0;
    font: inherit;
    color: #00BCD4;
    transition: all 0.3s ease;
    font-weight: 400;
}

input::placeholder {
    color: #00BCD4;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

input:focus::placeholder {
    opacity: 0.5;
}

.form__field {
    margin-bottom: 1.25rem;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.form__field:nth-child(1) {
    animation-delay: 0.1s;
}

.form__field:nth-child(2) {
    animation-delay: 0.2s;
}

.form__field:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form input {
    outline: 0;
    padding: 0.5rem 1rem;
    width: 100%;
    font-size: 16px;
    border-radius: 999px;
    background-color: transparent;
    border: 1px solid #242c37;
    text-align: center;
    transition: all 0.3s ease;
}

.form input:focus {
    border-color: #00BCD4;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
    background-color: rgba(0, 188, 212, 0.05);
}

.form input:hover:not(:focus) {
    border-color: rgba(0, 188, 212, 0.5);
    box-shadow: 0 3px 8px rgba(0, 188, 212, 0.2);
}

svg {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

.register {
    box-shadow: 0 0 250px #000;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.register input {
    border: 1px solid #242c37;
    border-radius: 999px;
    background-color: transparent;
    text-align: center;
    transition: all 0.3s ease;
}

.register input[type=submit],
.register input[type=button] {
    background-image: linear-gradient(160deg, #8ceabb 0%, #378f7b 100%);
    color: #fff;
    margin-bottom: 6rem;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.register input[type=submit]:hover,
.register input[type=button]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
    background-image: linear-gradient(160deg, #378f7b 0%, #8ceabb 100%);
}

.register input[type=submit]:active,
.register input[type=button]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* Acessibilidade e melhorias finais */
input:focus-visible {
    outline: 2px solid #00BCD4;
    outline-offset: 2px;
    border-radius: 999px;
}

.register input[type=submit]:disabled,
.register input[type=button]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsividade */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .register {
        padding: 3rem 1.5rem;
        border-radius: 12px;
    }
    
    .site__logo {
        margin-bottom: 1.5rem;
    }
    
    .form input {
        padding: 0.5rem 1rem;
        font-size: 15px;
    }
    
    .register input[type=submit],
    .register input[type=button] {
        padding: 0.75rem 1.25rem;
        font-size: 14px;
        margin-bottom: 4rem;
    }
}
