/* Base Styles for Sistema de Gestão para Escola Infantil */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f7f0;
    background-image: linear-gradient(120deg, #f9f7f0 0%, #f5f7fa 100%);
}

a {
    text-decoration: none;
    color: #ff6b6b;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: #ff8e8e;
}

ul {
    list-style: none;
}

/* Container for login page */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    animation: fadeIn 0.8s ease-in-out;
}

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

/* Header */
header {
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="30" cy="10" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="50" cy="10" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="70" cy="10" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="90" cy="10" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="10" cy="30" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="30" cy="30" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="50" cy="30" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="70" cy="30" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="90" cy="30" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="10" cy="50" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="30" cy="50" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="50" cy="50" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="70" cy="50" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="90" cy="50" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="10" cy="70" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="30" cy="70" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="50" cy="70" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="70" cy="70" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="90" cy="70" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="10" cy="90" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="30" cy="90" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="50" cy="90" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="70" cy="90" r="2" fill="rgba(255, 255, 255, 0.3)"/><circle cx="90" cy="90" r="2" fill="rgba(255, 255, 255, 0.3)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    background-color: white;
    padding: 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

/* Login Container */
.login-container {
    max-width: 450px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-in-out;
}

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

.login-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fbc2eb);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4d4d4d;
    font-weight: 800;
    font-size: 1.8rem;
    position: relative;
}

.login-container h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    margin: 10px auto 0;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: #495057;
    font-family: 'Nunito', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ff9a9e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.2);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
    position: relative;
    overflow: hidden;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
    transition: all 0.6s ease;
}

button:hover {
    background: linear-gradient(45deg, #ff8e8e 0%, #ffc3b2 99%, #ffc3b2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.5);
}

button:hover:before {
    left: 100%;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

footer p {
    position: relative;
}

footer p:before,
footer p:after {
    content: '✿';
    display: inline-block;
    margin: 0 10px;
    color: #ff9a9e;
    animation: bounce 1.5s ease-in-out infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 992px) {
    header h1 {
        font-size: 1.9rem;
    }
    
    .login-container {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.7rem;
    }
    
    header h1:after {
        content: none;
    }
    
    .login-container {
        max-width: 90%;
        margin: 15px auto;
        padding: 20px;
    }
    
    button {
        padding: 12px;
    }
    
    .container {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    header {
        padding: 15px 10px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    main {
        padding: 15px;
    }
    
    .login-container {
        max-width: 100%;
        margin: 10px auto;
        padding: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 15px;
    }
    
    button {
        padding: 10px;
        font-size: 16px;
    }
    
    footer p:before,
    footer p:after {
        content: '';
        margin: 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mb-20 {
    margin-bottom: 20px;
}

/* Messages */
.error-message {
    background-color: #fff0f0;
    border-left: 4px solid #ff6b6b;
    color: #e03131;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(224, 49, 49, 0.1);
    animation: slideIn 0.4s ease-in-out;
}

.success-message {
    background-color: #ebfbee;
    border-left: 4px solid #40c057;
    color: #2b8a3e;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(64, 192, 87, 0.1);
    animation: slideIn 0.4s ease-in-out;
}

.info-message {
    background-color: #e7f5ff;
    border-left: 4px solid #74c0fc;
    color: #1971c2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(116, 192, 252, 0.1);
    animation: slideIn 0.4s ease-in-out;
}

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

.info-message ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: none;
}

.info-message ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.info-message ul li:before {
    content: '•';
    color: #74c0fc;
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 1;
}

.info-message code {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(116, 192, 252, 0.3);
}