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

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Login Page Styles */
header {
    background-color: #f8dd1b;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(94vh - 17px);
    background-image: linear-gradient(to right, rgba(25, 25, 25, 0.6), rgba(25, 25, 25, 0.6)), url('../photos/TIPbg.png'); 
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
}

.divider-main {
    margin-bottom: 60px;
}

.portal-text {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.yellow-text {
    color: #f8dd1b;
}

.black-text {
    color: black;
}

.portal-text p {
    color: white;
    font-size: 18px;
    margin-top: 5px;
}

.right-section {
    background: white;
    padding: 30px;
    width: 350px;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    display: flex;
    flex-direction: column;
}

.campus-toggle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.campus-btn {
    flex: 1;
    padding: 10px;
    background: #eee;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.campus-btn:hover {
    background: #e5e5e5;
}

.campus-btn.active {
    background: #f8dd1b;
    color: black;
}

.login-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #f8dd1b;
    box-shadow: 0 0 0 2px rgba(248, 221, 27, 0.2);
    outline: none;
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #555;
}

.forgot-link {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-link a {
    font-size: 12px;
    color: #f8dd1b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link a:hover {
    color: #d4bd0a;
    text-decoration: underline;
}

.login-btn {
    background-color: black;
    color: white;
    padding: 12px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
    background-color: #222;
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.divider:before, .divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #ddd;
}

.divider:before {
    left: 0;
}

.divider:after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 10px;
    color: gray;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.google-login-btn {
    width: 100%;
    background: #f8dd1b;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.google-login-btn:hover {
    background-color: #e5ca0d;
    transform: translateY(-2px);
}

.google-login-btn:active {
    transform: translateY(0);
}

.google-login-btn img {
    width: 18px;
    height: 18px;
}

.footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}

/* Responsive styles */
@media screen and (max-width: 480px) {
    .portal-text h1 {
        font-size: 36px;
    }
    
    .right-section {
        width: 100%;
        max-width: 350px;
    }
    
    .main-content {
        padding: 20px;
    }
}