* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.toggle-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.toggle-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.toggle-text a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.success {
    color: #27ae60;
    font-size: 12px;
    margin-top: 5px;
}

/* Professional ID Card Design - Like SMIT Card */
.id-card {
    background: white;
    border: 3px solid #1e5bb8;
    border-radius: 15px;
    padding: 0;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.id-card-header {
    background: linear-gradient(135deg, #1e5bb8 0%, #4CAF50 100%);
    text-align: center;
    padding: 20px;
    border-bottom: 4px solid #4CAF50;
    position: relative;
}

.id-card-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e5bb8, #4CAF50, #1e5bb8);
}

.id-card-header h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.id-card-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

.id-card-body {
    padding: 25px 20px;
    background: white;
}

.id-photo {
    width: 100px;
    height: 120px;
    background: #f0f0f0;
    border: 3px solid #1e5bb8;
    border-radius: 8px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #1e5bb8;
}

.student-name {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1e5bb8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.id-field {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.id-field:last-child {
    border-bottom: none;
}

.id-field-label {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    min-width: 100px;
}

.id-field-value {
    text-align: right;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.id-number {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #1e5bb8 0%, #4CAF50 100%);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.download-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    margin-top: 20px;
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    margin-top: 10px;
}

@media print {
    body {
        background: white;
    }
    .container {
        box-shadow: none;
        padding: 20px;
    }
    button {
        display: none !important;
    }
    h2 {
        display: none;
    }
    .id-card {
        box-shadow: none;
        page-break-inside: avoid;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .id-card {
        max-width: 100%;
    }
}