/* =============================================
   Sistema de Gestão de Fornecedores - Mockups
   Estilos Base
   ============================================= */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    min-height: 100vh;
    color: #333;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 40px;
    margin: 20px auto;
}

.card-login {
    max-width: 450px;
    margin-top: 60px;
}

.card-cadastro {
    max-width: 800px;
    margin-top: 40px;
}

/* Logo / Header */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #1e3a5f;
    font-size: 28px;
    font-weight: 700;
}

.logo p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Títulos */
h2 {
    color: #1e3a5f;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

h3 {
    color: #2d5a87;
    font-size: 18px;
    margin: 25px 0 15px 0;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5a87;
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Grid de campos */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

.btn-full {
    width: 100%;
}

/* Links */
.link {
    color: #2d5a87;
    text-decoration: none;
    font-weight: 500;
}

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

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-10 {
    margin-top: 10px;
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

/* Checkbox customizado */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

/* Upload */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #2d5a87;
    background: #f8fafc;
}

.upload-area i {
    font-size: 40px;
    color: #999;
    margin-bottom: 10px;
}

.upload-area p {
    color: #666;
    font-size: 14px;
}

/* Tags / Chips */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    background: #e8f0f7;
    color: #1e3a5f;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    color: #999;
}

.tag .remove-tag:hover {
    color: #e74c3c;
}

/* Botão de adicionar */
.add-field-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.add-field-btn:hover {
    border-color: #2d5a87;
    color: #2d5a87;
    background: #f8fafc;
}

/* Seções do formulário */
.form-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #2d5a87;
}

.form-section h3 {
    margin-top: 0;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa8;
    color: #856404;
}
