/* RESET E VARIÁVEIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --color-primary: #FF7A00;
    --color-primary-light: #FF9E4D;
    --color-primary-dark: #CC5500;
    --color-secondary: #FFFFFF;
    --color-success: #4CAF50;
    --color-danger: #F44336;
    --color-warning: #FFC107;
    --color-text: #2D3436;
    --color-text-light: #636E72;
    --color-bg: #F8F9FA;
    --color-card: #FFFFFF;
    --color-border: #E0E0E0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --overlay-bg: rgba(0,0,0,0.6);
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 122, 0, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--color-card);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
}

.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-danger); }
.toast.warning { border-left-color: var(--color-warning); }
.toast.info { border-left-color: var(--color-primary); }

.toast .material-icons-round { font-size: 1.5rem; }
.toast.success .material-icons-round { color: var(--color-success); }
.toast.error .material-icons-round { color: var(--color-danger); }
.toast.warning .material-icons-round { color: var(--color-warning); }
.toast.info .material-icons-round { color: var(--color-primary); }

.toast-content { 
    flex: 1;
}

.toast-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-text p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--color-text);
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(400px); opacity: 0; }
}

/* SIGNUP CONTAINER */
.signup-container {
    display: flex;
    min-height: 100vh;
}

/* LEFT PANEL */
.signup-left {
    flex: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.signup-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.signup-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
}

.signup-content-left {
    max-width: 500px;
    color: white;
    z-index: 1;
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.logo-main {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.signup-content-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.signup-content-left p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.feature-item .material-icons-round {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* RIGHT PANEL */
.signup-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--color-bg);
}

.signup-content-right {
    width: 100%;
    max-width: 450px;
    background: var(--color-card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-card {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.card-header p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ALERT MESSAGES */
.alert-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-message.hidden {
    display: none;
}

.alert-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--color-danger);
}

.alert-message .material-icons-round {
    font-size: 1.5rem;
}

.alert-message.error .material-icons-round {
    color: var(--color-danger);
}

.alert-message div {
    flex: 1;
}

.alert-message p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

/* FORM STYLES */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-label .material-icons-round {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-card);
}

.form-help {
    font-size: 0.75rem;
    color: var(--color-danger);
    margin-top: -0.25rem;
}

.form-help.hidden {
    display: none;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--color-primary);
}

.toggle-password .material-icons-round {
    font-size: 1.25rem;
}

/* FORM OPTIONS */
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--color-text);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.link-primary {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary .material-icons-round {
    font-size: 1.25rem;
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.divider span {
    padding: 0 1rem;
}

/* SIGNUP LINK */
.signup-link {
    text-align: center;
}

.signup-link p {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .signup-left {
        display: none;
    }

    .signup-right {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .signup-right {
        padding: 1.5rem;
    }

    .signup-content-right {
        padding: 1.5rem;
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    .toast-container {
        right: 0.5rem;
        left: 0.5rem;
    }

    .toast {
        min-width: auto;
    }
}
