/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* Login Container */
.login-container, .welcome-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box, .welcome-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.login-box::before, .welcome-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* Header */
.login-header, .welcome-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1, .welcome-header h1 {
    font-size: 24px;
    margin: 10px 0;
    color: #444;
}

.login-header p, .welcome-header p {
    color: #777;
    font-size: 14px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #764ba2;
    padding: 5px;
}

/* Form Styles */
.login-form {
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.input-group:hover {
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}

.input-group i {
    color: #777;
    margin-right: 10px;
    font-size: 16px;
}

.input-group input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    background: transparent;
}

.toggle-password {
    cursor: pointer;
    color: #777;
    margin-left: 10px;
}

/* Options */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.options label {
    display: flex;
    align-items: center;
    color: #555;
    cursor: pointer;
}

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

.forgot-password {
    color: #764ba2;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #5a3792;
    text-decoration: underline;
}

/* Button */
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #667eea, #764ba2);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    background: linear-gradient(to right, #5a6fd8, #5a3792);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-btn i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.login-btn:hover i {
    transform: translateX(5px);
}

/* Social Login */
.social-login {
    text-align: center;
    margin-bottom: 20px;
}

.social-login p {
    color: #777;
    font-size: 13px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before, .social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon.google { background: #db4437; }
.social-icon.facebook { background: #4267B2; }
.social-icon.twitter { background: #1DA1F2; }

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Signup Link */
.signup-link {
    text-align: center;
    font-size: 14px;
    color: #777;
}

.signup-link a {
    color: #764ba2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-link a:hover {
    color: #5a3792;
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border-left: 4px solid #c62828;
}

/* Welcome Page Styles */
.welcome-content {
    text-align: center;
}

.welcome-icon {
    font-size: 80px;
    color: #4CAF50;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin: 30px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #4CAF50, #8BC34A);
    transition: width 0.3s;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #f44336;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    margin-top: 20px;
}

.logout-btn i {
    margin-right: 8px;
}

.logout-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
    .login-box, .welcome-box {
        padding: 20px;
    }
    
    .login-header h1, .welcome-header h1 {
        font-size: 20px;
    }
}