﻿body {
    /*弹性布局 让页面元素垂直+水平居中*/
    display: block;
    /*    justify-content: center;
    align-items: start;*/
    /*让页面始终占浏览器可视区域总高度*/
    height: 100vh;
    /*背景渐变色*/
    background: linear-gradient(#141e30,#243b55);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login {
    /*弹性布局 让子元素称为弹性项目*/
    /*    display: flex;*/
    /*让弹性项目垂直排列  原理是改变弹性盒子的主轴方向  
  父元素就是弹性盒子  现在改变后的主轴方向是向下了*/
    /*    flex-direction: column;*/
    /*让弹性项目在交叉轴方向水平居中  现在主轴的方向是向下  
  交叉轴的方向是与主轴垂直 交叉轴的方向是向右*/
    /*    align-items: center;*/
    /*    width: 100%;*/
    padding: 20px;
}

h2 {
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}

input[type=button], .shadowbtn {
    /*overflow: hidden;*/
    position: relative;
    padding: 10px 20px;
    color: #000000;
    /*取消a表现原有的下划线*/
    text-decoration: none;
    /*同样加个过渡*/
    transition: all 0.5s;
    display: block;
    margin: 10px;
    width: 150px;
    flex-grow: 1
}

@media(any-hover:hover) {
    input[type=button]:hover, .shadowbtn:hover {
        color: #fff;
        border-radius: 5px;
        background-color: #03e9f4;
        box-shadow: 0 0 5px #03e9f4,0 0 25px #03e9f4,0 0 50px #03e9f4,0 0 100px #03e9f4;
    }
}

.tableDetail {
    color: white;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}