* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

header {
    background: #2a5298;
    color: white;
    text-align: center;
    padding: 25px;
    position: relative;
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

header p {
    font-size: 16px;
    opacity: 0.9;
}

.logo {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 32px;
    color: white;
}

.content {
    display: flex;
    flex: 1;
}

.welcome-panel {
    flex: 1;
    background: linear-gradient(to bottom, #4a6fc0, #2a5298);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-panel h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.welcome-panel ul {
    list-style-type: none;
    margin: 20px 0;
}

.welcome-panel li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.welcome-panel i {
    margin-right: 10px;
    font-size: 20px;
}

.auth-panel {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    transition: all 0.3s;
}

.tab.active {
    color: #2a5298;
    border-bottom: 3px solid #2a5298;
}

.form-container {
    position: relative;
    min-height: 350px;
}

.form {
    position: absolute;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.form.active {
    opacity: 1;
    pointer-events: all;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
}

button {
    width: 100%;
    padding: 14px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #1e3c72;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.timer {
    text-align: center;
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

footer {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    .welcome-panel {
        order: 2;
    }
    
    .auth-panel {
        order: 1;
    }
}