:root {
    --primary: #4DAF4E;
    --primary-dark: #3d8c3e;
    --light-bg: #f8f9fa;
    --border: #eaeaea;
    --text: #333;
    --text-light: #666;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.5;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

.register-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 190px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-header h1 {
    color: var(--text);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-light);
    font-size: 16px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.alert {
    background: #fee;
    color: #c33;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 4px solid #c33;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-left: 4px solid #28a745;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(77, 175, 78, 0.1);
}

.form-control::placeholder {
    color: #aaa;
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 175, 78, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 14px;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary);
}

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

.main-nav {
    list-style-type: none;
    border-radius: 12px;
    background-color: #f1f3f5;
    padding: 8px;
}

.main-nav .nav-item {
    margin: 0 4px;
    display: inline-block;
}

.main-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.main-nav {
    margin-bottom: 0 !important;
}