.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    padding-top: 10vh;
}

.login-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    padding-top: 80px; /* Make room for the character */
    position: relative;
}

.login-card h2 {
    color: #FE4D01;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #151515;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #FE4D01;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(254, 77, 1, 0.25);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #FE4D01;
    border: none;
    transition: background-color 0.15s ease-in-out;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #FFD966;
    color: #151515;
}

.text-danger {
    color: #dc3545;
    text-align: center;
}

.logo {
    position: absolute;
    top: -75px;  /* 将logo向上移动50px，使其略高于容器 */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    box-shadow: var(--box-shadow);
    border-radius: 50%;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 学生个人资料管理样式 */
.profile-card {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: #fff;
}

.profile-card .card-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ddd;
}

.profile-card .card-body {
    padding: 1.5rem;
}

.profile-card h3 {
    margin-top: 0;
    color: #FE4D01;
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-card .section-title {
    color: #333;
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f1f1;
}

.profile-card:hover {
    /* no moving when hover */
    transform: none;
}

.profile-form .form-group {
    margin-bottom: 1.25rem;
}

.profile-form label {
    font-weight: 500;
    color: #444;
    margin-bottom: 0.35rem;
}

.profile-form .text-muted {
    font-weight: normal;
    font-size: 0.85rem;
}

.profile-form .form-control {
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.profile-form .form-control:focus {
    border-color: #FE4D01;
    box-shadow: 0 0 0 0.2rem rgba(254, 77, 1, 0.15);
}

/* 添加select字段的特定样式 */
.profile-form select.form-control {
    padding-right: 30px; /* 为下拉箭头留出足够空间 */
    appearance: none; /* 移除浏览器默认样式 */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.5L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    height: auto;
}

.profile-form select.form-control option {
    padding: 8px;
    font-size: 0.95rem;
}

.profile-form .btn-container {
    text-align: center;
    margin-top: 2rem;
}

.profile-form .btn-secondary {
    background-color: #6c757d;
    color: white;
    margin-left: 10px;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.profile-form .btn-secondary:hover {
    background-color: #5a6268;
}

.profile-form .btn-primary {
    width: auto;
    padding: 0.75rem 2rem;
    transition: all 0.2s ease;
}

.profile-form .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.profile-form .col-half {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.profile-form .form-help {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Alert messages styling */
.alert {
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

@media (max-width: 768px) {
    .profile-form .col-half {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .profile-form .btn-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .profile-form .btn-secondary {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

/* Password change form specific styles */
.password-form .form-group {
    margin-bottom: 1.5rem;
}

.password-form label {
    font-weight: 500;
    color: #444;
    margin-bottom: 0.5rem;
}

.password-form .form-control {
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.password-form .form-control:focus {
    border-color: #FE4D01;
    box-shadow: 0 0 0 0.2rem rgba(254, 77, 1, 0.15);
}

.password-form .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    text-decoration: none;
}

.password-form .btn-secondary:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

.password-form .btn-primary {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

/* Specific styling for change password button */
.change-password-btn {
    width: auto !important;
    min-width: 180px;
    max-width: 250px;
    padding: 0.75rem 2rem !important;
    display: inline-block !important;
}

/* Security section in profile */
.profile-card .section-title {
    color: #333;
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f1f1;
}

.btn-outline-secondary {
    color: #6c757d;
    border: 1px solid #6c757d;
    background-color: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
}

.btn-outline-secondary i {
    margin-right: 0.5rem;
}

/* System introduction on login page */
.system-intro {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.system-intro p {
    margin-bottom: 0.5rem;
}

.system-intro a {
    color: #FE4D01;
    font-weight: 500;
}