/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #427250 0%, #2e6f40 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container principal */
.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* Cabeçalho */
.login-header h1 {
    color: #2e6f40;
    font-size: 2.2em;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Seções */
.login-section, .share-section {
    margin: 30px 0;
}

.login-section h2, .share-section h2 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Botões sociais de login */
.social-buttons, .share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn, .share-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-btn .icon, .share-btn .icon {
    font-size: 1.3em;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

/* Cores dos botões de login */
.social-btn.free-test {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    border: 2px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.social-btn.free-test:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.social-btn.google {
    background-color: #4285f4;
    color: white;
}

.social-btn.facebook {
    background-color: #1877f2;
    color: white;
}

.social-btn.github {
    background-color: #333;
    color: white;
}

.social-btn.apple {
    background-color: #000;
    color: white;
}

/* Cores dos botões de compartilhamento */
.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.share-btn.linkedin {
    background-color: #0077b5;
    color: white;
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.facebook-share {
    background-color: #1877f2;
    color: white;
}

.share-btn.whatsapp {
    background-color: #25d366;
    color: white;
}

/* Efeitos hover */
.social-btn:hover, .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.social-btn:active, .share-btn:active {
    transform: translateY(0);
}

/* Divisor */
.divider {
    margin: 35px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #666;
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

/* Rodapé */
.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    margin: 8px 0;
}

.login-footer a {
    color: #2e6f40;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-footer small a {
    color: #666;
    font-weight: normal;
    font-size: 0.9em;
}

/* Estados de loading */
.social-btn.loading, .share-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.social-btn.loading::after, .share-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-header h1 {
        font-size: 1.8em;
    }
    
    .social-btn, .share-btn {
        padding: 12px 16px;
        font-size: 0.95em;
    }
    
    .social-btn .icon, .share-btn .icon {
        font-size: 1.2em;
        margin-right: 10px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 25px 15px;
    }
    
    .social-btn, .share-btn {
        padding: 10px 14px;
        font-size: 0.9em;
    }
}