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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
}

.divider {
    background: linear-gradient(to bottom, transparent, #ccc, transparent);
    width: 1px;
    height: 100%;
}

.form-section {
    padding: 40px;
}

.form-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.form-section p {
    color: #666;
    margin-bottom: 30px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="username"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

.message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.message.error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.message.success {
    background: #efe;
    color: #3a6;
    border-left: 4px solid #3a6;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 14px;
}

.login-hint a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.login-hint a:hover {
    text-decoration: underline;
}

.imgcontainer {
    width: 150px;
    height: 150px;
    text-align: center;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

/* Cache control meta tags (these don't actually work in CSS, but kept for reference) */
meta[http-equiv="Cache-Control"],
meta[http-equiv="Pragma"],
meta[http-equiv="Expires"] {
    /* These are HTML meta tags, not CSS - kept for documentation */
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .divider {
        display: none;
    }
    
    .form-section {
        padding: 30px;
    }
}