College DB css

 * {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


body {

    font-family: 'Arial', sans-serif;

    background: linear-gradient(135deg, #3498db, #2ecc71); /* Blue to Green Gradient */

    display: flex;

    justify-content: center;

    align-items: center;

    height: 100vh;

}


.form-container {

    background-color: rgba(255, 255, 255, 0.1);

    padding: 20px;

    border-radius: 15px;

    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);

    width: 350px;

    backdrop-filter: blur(10px);

}


h2 {

    text-align: center;

    margin-bottom: 20px;

    color: #fff;

    font-weight: bold;

    text-transform: uppercase;

}


label {

    display: block;

    margin-bottom: 5px;

    color: #fff;

    font-weight: bold;

    letter-spacing: 0.5px;

}


input[type="text"], 

input[type="tel"], 

select, 

textarea {

    width: 100%;

    padding: 10px;

    margin-bottom: 15px;

    border: 2px solid transparent;

    border-radius: 5px;

    background-color: rgba(255, 255, 255, 0.2);

    color: #fff;

    transition: all 0.3s ease;

    font-size: 16px;

}


input[type="text"]:focus, 

input[type="tel"]:focus, 

select:focus, 

textarea:focus {

    outline: none;

    border-color: #3498db; /* Blue Border on Focus */

    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5); /* Blue Glow on Focus */

}


input[type="submit"] {

    width: 100%;

    padding: 12px;

    background-color: #e74c3c; /* Red Button */

    color: #fff;

    border: none;

    border-radius: 25px;

    cursor: pointer;

    font-size: 18px;

    transition: all 0.3s ease;

    text-transform: uppercase;

    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6); /* Red Glow */

}


input[type="submit"]:hover {

    background-color: #c0392b; /* Darker Red on Hover */

    box-shadow: 0 0 25px rgba(192, 57, 43, 0.9); /* Red Glow on Hover */

    transform: translateY(-3px);

}


input[type="submit"]:active {

    transform: translateY(0);

    box-shadow: 0 0 15px rgba(192, 57, 43, 0.7); /* Red Glow on Active */

}


::placeholder {

    color: rgba(255, 255, 255, 0.7);

}


input, select, textarea {

    color: #fff;

}


Comments

Popular posts from this blog

Detail