* {
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

@font-face {
    font-family: 'GESSTwoLight';
    src: url('fonts/GESSTwoLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    }
        
body {
    min-height: 100vh;
    background: linear-gradient(90deg, #FDFBF1, #22525644);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* login page */
.container {
    position: relative;
    width: 90vw;
    height: 85vh;
    background: #f8f8f8;
    margin: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
}
.formbox{
    position: absolute;
    width: 50%;
    height: 100%;
    background: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    color:#225256;
    text-align: center;
    flex-direction: column;
    padding: 50px;
    z-index: 1;
}
form{
    background: #f8f8f8;
    width: 85%;
}


.inputgroup {
    position: relative;
    width: 100%;
    background-color: #f8f8f8;
    height: 80px;
    margin-top: 50px;
}

.inputgroup input {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 13px 20px 13px 20px;
    background-color: #eee;
    border-radius: 8px;
    outline: none;
    border: none;
    border-bottom: solid 1px #225256;
    transition: all 200ms;
    font-size: 16px;
    color: #333;
}   
.inputgroup input::placeholder {
    color:#888;
    font-weight: 400;
}
.inputgroup label {
    position: absolute;
    top: 17%;
    right: 10px;
    transition: all 200ms;
}

.inputgroup input:hover +label,
.inputgroup input:focus +label,
.inputgroup input:valid +label 
{
    transform: translate(-5px,-32px);
    font-size: 17px;
    color: #667a7a;
    background-color: transparent; 
    padding: 2px;
}

.inputgroup input:hover,
.inputgroup input:focus,
.inputgroup input:valid 
{
    border-bottom: solid 1px #667a7a;
}

.topmargin{
    margin-top: 40px;
    height: 70px;
}

.btnlog {
    width: 100%;
    height: 48px;
    color: white;
    background-color: #667A7A !important;
    font-family: 'Cairo', sans-serif;
    border: none;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btnlog:hover {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.btnlog:active {
    background-color: #225256;
    transform: translateY(1px); /* يعطي إحساس بالضغط */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); /* خفف الظل */
}

.error {
    color: red;
    font-size: 0.9em;
    text-align: right;
    position: absolute;
    bottom: 0;
    right:0;

}
.errormsg {
    display: block;
    height: 30px;
    visibility: hidden;
    position: absolute;
    bottom: 0;
}
.leftsection {
    position: absolute;
    width: 50%;
    height:100%;
    background: #225256;
    left:0;
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    
}
.leftsection img {
    width: 50%;
    height: auto
}
.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top: 5px solid #009688;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 9999;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media screen and (max-width: 650px) {
    body {
        min-height: 85vh;
    }
    .container {
        height: calc(85vh - 40px);     
    }

    .formbox {
        width: 100%;
        height :80%;
        bottom: 0;
        padding: 20px;
    }

    .leftsection {
        left: 0;
        top:0;
        width: 100%;
        height: 25%;
        border-radius: 0 0 10vw 10vw;
        z-index: 9999;
    }

}

@media screen and (max-width: 400px) {
    .formbox {
        padding :20px;
}

}

/*attendace page */

.page {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 
    "header-area"
    "section"
    "courses"
    "students"
    ;
}
.header-area {
    grid-area: header-area;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "logo-group logout-area";
    gap :0.3rem;
    font-size: 1rem;
    padding: 1rem;
}
.logo-group {
    grid-area: logo-group;
    display: flex;
    justify-content: start;
    align-items: center;
}

    .img1 {
    width: 10vw;
   }
   .img2 {
    width: 5vw;
   }
   .btnlogout{
    width: 8em;
    color: white;
    font-family: 'Cairo', sans-serif;
    border: none;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border-radius: 5px;
    cursor: pointer;
    padding: 1rem;

   }
   .btnlogout:hover {
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.4);
    transition: all 50ms;
    transform: translateY(-1px);
}
.logout-area {
    grid-area: logout-area;
    display: flex;
    justify-content: end;
    align-items: center;
}

.section {
    grid-area: section;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: .5fr 1fr;
    grid-template-areas: 
    "label-area"
    "dropdown-area";
    gap :0.3rem;
    font-size: 1rem;
     padding: 1rem;
     background-color: #b7a9844b;
}

.label-area {
    grid-area: label-area;
    font-size: 1rem;
}

.dropdown-area {
    grid-area: dropdown-area;
    font-size: 1rem;
}
.options{
    width: 100%;
    outline: none;
    border: none;
    background-color: transparent;
    border-bottom: 1px solid #225256;
}
.courses {
    grid-area: courses;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: .5fr 1fr;
    grid-template-areas: 
    "label-area"
    "dropdown-area";
    gap :0.3rem;
    font-size: 1rem;
     padding: 1rem;
     background-color: #b7a9844b;
}

.students {
    grid-area: students
}

/* courses page */

    .course {
        background: white;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    }
    .course h3 {
        margin-top: 0;
        color: #333;
    }
    .course .price {
        color: green;
        font-weight: bold;
    }
            .cls-1 {
    fill: #231f20;
            
      }
.btncr {
    width: 50%;
    height: 48px;
    background-color: #667a7a;
    color: white;
    font-family: 'Cairo', sans-serif;
    border: none;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
}

