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

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a1929;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.project-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #1565c0, #0d47a1);
    padding: 12px 20px;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 15px;
    line-height: 1.5;
}

.project-info p {
    margin: 5px 0;
}

.project-info strong {
    color: #90caf9;
    font-weight: bold;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(25, 118, 210, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 118, 210, 0.1) 1px, transparent 1px);
    background-size: 35px 35px;
    z-index: -1;
}

.login-box, .register-box {
    background-color: rgba(13, 31, 45, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 360px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(66, 165, 245, 0.2);
    position: relative;
    z-index: 1;
    margin-top: 100px;
}

.login-box::before, .register-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #03a9f4);
    border-radius: 10px 10px 0 0;
}

h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    font-size: 26px;
    position: relative;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 3px;
    width: 50px;
    background-color: #03a9f4;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #90caf9;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(7, 19, 29, 0.8);
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #03a9f4;
    box-shadow: 0 0 10px rgba(3, 169, 244, 0.3);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #0288d1, #03a9f4);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(90deg, #03a9f4, #0288d1);
    box-shadow: 0 5px 15px rgba(3, 169, 244, 0.4);
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #78909c;
}

.form-footer a {
    color: #29b6f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    color: #03a9f4;
    text-decoration: underline;
}

.icon {
    position: absolute;
    right: 12px;
    top: 42px;
    color: #64b5f6;
}

/* 裝飾元素 */
.circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(3, 169, 244, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 67, 54, 0.1) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
}

/* 錯誤和成功訊息 */
.message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ef5350;
}

.success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #66bb6a;
}

/* 儀表板樣式 */
.dashboard {
    background-color: rgba(13, 31, 45, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 600px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(66, 165, 245, 0.2);
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

.dashboard h1 {
    margin-bottom: 40px;
}

.dashboard-content {
    margin-bottom: 30px;
}

.logout-btn {
    background: linear-gradient(90deg, #d32f2f, #f44336);
    max-width: 150px;
    margin: 0 auto;
    display: block;
} 