:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container,
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    padding: 20px;
}

.login-card,
.register-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header,
.register-header {
    background: var(--primary-gradient);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header h2,
.register-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 28px;
}

.login-header p,
.register-header p {
    margin: 10px 0 0;
    opacity: 0.9;
}

.login-body,
.register-body {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login,
.btn-register {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: white !important;
    font-weight: 600;
    font-size: 24px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: white !important;
}

.credential-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
    border: none;
}

.card-header i {
    font-size: 24px;
    margin-right: 10px;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

.credential-item {
    margin-bottom: 20px;
}

.credential-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.password-field {
    flex: 1;
    font-family: monospace;
    font-size: 14px;
    border: none;
    background: transparent;
    padding: 5px 0;
}

.password-field:focus {
    outline: none;
}

.toggle-password {
    cursor: pointer;
    color: #667eea;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #764ba2;
}

.btn-visit {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.user-welcome {
    color: white;
    margin-right: 20px;
    font-weight: 500;
}

.dashboard-title {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.dashboard-title h1 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.dashboard-title p {
    margin: 10px 0 0;
    color: #888;
}

@media (max-width: 768px) {
    .login-card,
    .register-card {
        margin: 20px;
    }
    
    .login-header,
    .register-header {
        padding: 30px 20px;
    }
    
    .login-body,
    .register-body {
        padding: 30px 20px;
    }
    
    .dashboard-title {
        padding: 20px;
    }
    
    .dashboard-title h1 {
        font-size: 24px;
    }
}