/*
 * 魔兽世界注册页面样式
 * 位置：/var/www/html/site.css
 */

body {
    background-image: url("img/background.jpg");
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    text-shadow: #000 0 0 3px;
}

img {
    border: 0;
    vertical-align: middle;
}

table.reg {
    width: 600px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

div.copy {
    color: #ccc;
    font-size: 12px;
    font-family: arial;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

div.errors {
    color: #fff;
    font-family: arial;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

table.form {
    width: 100%;
    color: #fff;
    margin: 15px 0;
    font-family: arial;
    border-spacing: 5px;
    font-size: 16px;
}

table.form td {
    padding: 8px 0;
    vertical-align: top;
}

input, select {
    width: 200px;
    padding: 10px;
    background-color: #f7f7f7;
    color: #333;
    border: 1px solid #ddd;
    font-size: 14px;
    border-radius: 4px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    background-color: #fff;
}

input.sbm {
    width: auto;
    padding: 10px 30px;
    background: linear-gradient(to bottom, #4CAF50, #388E3C);
    color: #fff;
    border: none;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

input.sbm:hover {
    background: linear-gradient(to bottom, #45a049, #2E7D32);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
    transform: translateY(-2px);
}

input.sbm:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

input.sbm[type="reset"] {
    background: linear-gradient(to bottom, #f44336, #d32f2f);
}

input.sbm[type="reset"]:hover {
    background: linear-gradient(to bottom, #e53935, #c62828);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    table.reg {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }
    
    input, select {
        width: 100%;
    }
    
    table.form td {
        display: block;
        text-align: left;
    }
    
    table.form td[align="right"] {
        text-align: left;
        font-weight: bold;
        margin-bottom: 5px;
    }
}